Rank: Member Groups: Member
Joined: 6/4/2012 Posts: 13
|
I want to sort the grid by code, from aspx.cs. I tried this way but I get an error:
GridDesempeno.SortColumn.DataField = "Area"; GridDesempeno.SortColumn.DataField = "Ascending";
No need to apply the ORDER BY in the SQL statement, I need sort the grid directly from code. How should I do it?
Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
You do not sort on the Grid on the server side. You sort with your SQL. :)
Thanks!
|