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

datagridview is having 5 columns. When i click on any column it should sort all the data in ascending and if I click the same column should sort in descending order. Please help me regarding the same
Posted

 
Share this answer
 
Hi pradeep455,

You have just to set AllowUserToOrderColumns property to true.

I hope this help,
:)
 
Share this answer
 
Comments
siva455 10-May-11 7:56am    
not working....

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