Jez wrote:
If you specify an ORDER BY clause in your query then the gridview will automatically be sorted in that order.
You can also use the gridview's build in sort() method eg:
MyGridView.Sort("Column1, Column2", SortDirection.Ascending);
Ehhh...ORDER BY works ???
How... where ?
Like so:
SelectCommand="SELECT * FROM [ViewClients] ORDER BY EnquiryDate DESC">
in <asp:SqlDataSource does NOT work for me.
I'll go and give the MyGridView.Sort a try.. thanks.