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

I am struggeling here.
My code is in VB.NET, I have a Datagridview with a bound datatable in it. Then I added a check box column into the datagridview.

When I click the header of the Datagridview, it sorts the bound columns, and clears all checked checkboxes in the checkbox column.

What i need to do, please help me.
Thanks in advance!!!!
Posted
Comments
TryAndSucceed 8-Oct-13 10:49am    
While loading the grid, store the checkboxes with ID's and when it sorts, loop through the grid and check the checkboxes with the same ID's stored previously. There is a lot of help available on this topic online with solution. You will have to load checkbox column dynamically.

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