Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi All,

I need to sort a gridview on the basis of one of it's columns value (Date). Please let me know how can i achieve this. I just want simple "ASCENDING" ordering of data just before binding values to gridview.

Thanks in Advance!
Posted

1 solution

On button click just rebind the grid. and in your query use Asc for Date


Or you can check this link:

Link grid View Sorting Example[^]
 
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