index | search | no replies | posting guidelines | help login | register
Index » Products » ASP DataGrid
search this forum:
:: Grid incomplete fonctionnality ? ::    show all messagesPost a New Message | Post a Reply
Feb 4 2005, 5:23 AM
 Re: Grid incomplete fonctionnality ?Post a Reply

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

You can use the DefaultSortOrder property to sort the datagrid for example:

  Dim objGrid
'Create an instance of DataGrid
  Set objGrid = Server.CreateObject("AspWebSolution.DataGrid")  
'set your sql command
objGrid.Command = "SELECT CompanyName, ContactName,  Phone FROM Customers"
objGrid.DefaultSortOrder = "ContactName"
'Create a databse connection
objGrid.CreateConnection (strConn)    

Pages: (1)   [1]

search this forum: