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



I want to implemented sorting in gridview in window application and I have also done paging on the same... want to sort all record which are on gridview first page or second page in window application c#.

Whenever I fire HeaderColumnMouseClick event What Should I do in order to sort my datatable records. I need some examples for sorting in Datatables using DefaultView.


Thanks in advance
Sahil
Posted
Updated 28-Oct-12 21:46pm
v2
Comments
Zoltán Zörgő 26-Oct-12 4:41am    
And your question is...?
And what have you done so far? Where are you stuck?
BlackMilan 26-Oct-12 4:41am    
does that mean that you do not want to sort all the rows, but only, for example, the first 50?
Sahil sharma 26-Oct-12 4:44am    
Exmple In using paging And i used 15 records on per page.(My question is that when I sort my coloumn on header click then all records are sorted means first 15 records are sorted and i wand next page 15 records will sort
BlackMilan 26-Oct-12 5:18am    
No, normaly all records (whole table) will be sorted, not only the visited.

 
Share this answer
 
Comments
Sahil sharma 26-Oct-12 10:18am    
can't get help from this
 
Share this answer
 
Comments
Sahil sharma 26-Oct-12 10:18am    
Can't get help from this
try this link[^]
 
Share this answer
 

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