Welcome Guest Search | Active Topics | Sign In | Register

Sort the grid by code Options
ti-vam
Posted: Tuesday, November 13, 2012 5:41:41 PM
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
eo_support
Posted: Tuesday, November 13, 2012 8:24:33 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.