Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I havea Datagridview(windows Form) which is filled pragmatically . when i sort the column. last row in datagridview is not getting sorted but last row is having data. If i add an empty row to the grid then only last row getting sorted.but i don't want to show empty row .can you please help me. i am getting output like this.middle cells are empty cells

result column
same
same
same




different
different
different
different
same (lastrow)
Posted
Updated 10-Mar-14 2:16am
v2
Comments
george4986 10-Mar-14 7:57am    
are u using any loop for sorting?if yes check iteration count
Nelek 10-Mar-14 8:11am    
nadigatlatulasirao 10-Mar-14 8:13am    
No,I am not sorting Pragmatically. I am using Default (automatic) Sorting.
Dinesh.V.Kumar 11-Mar-14 1:37am    
Why dont you sort the datatable and bind the sorted datatable to the datagridview...

Hope this helps!!

Regards

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