index | search | no replies | posting guidelines | help | login | register |
Index » Products » ASP DataGrid |
| |||||||
Feb 4 2005, 5:23 AM |
| ||||||
ghost 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) %> ------------------------- Ghost | ||||||
Pages: (1) [1] |