I'm struggeling here.
I have a Datagridview with a bound datatable in it. Then I add a check box column to it.
When I click the headder of the DGV, it sorts the bound columns, and clears all checked checkboxes in the checkbox column.
How do I bind the checkboxcolumn to the rest of the table?
Adding column to datagridview and bind it
Page 1 of 11 Replies - 435 Views - Last Post: 05 February 2012 - 06:43 AM
Topic Sponsor:
Replies To: Adding column to datagridview and bind it
#2
Re: Adding column to datagridview and bind it
Posted 05 February 2012 - 06:43 AM
The best way to do this would be to add a datacolumn to your dataset.
Dim dc As New DataColumn("TempCheck", System.Type.GetType("System.Boolean"))
ds.Tables("YourTable").Columns.Add(dc)
This will then set the values of any checkboxes that the user checks so that when you sort the dgv, the dataset can maintain those checked values.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|