Click here to Skip to main content
15,880,972 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to sort the gridview in descending order of date by coding. so what code and which property i will to set..

Plzzz replyyy.
Mitesh
Posted
Comments
Sandeep Mewara 23-Apr-12 8:24am    
Here is what is expected of enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.

Pick any of the 743,000 results found here[^]
 
Share this answer
 
Add the attributes OnSorting="gridView_Sorting" AllowSorting="true" in Gridview and SortExpression="ColumnName" in the column and implement OnSorting Event.

check the links

How to sort gridView[^]

Grid View Sorting[^]

Sorting in Grid View[^]

sorting and paging with gridview asp.net[^]

Paging and Sorting the GridView's Data[^]

Creating a Customized Sorting User Interface[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900