Windows Forms Data Controls and Databinding
Of cource the DataGridViewCheckBoxColumn can do the thing you want:
this.dataGridView1.Columns.Insert(0,new DataGridViewCheckBoxColumn());
This statement insert a DataGridViewCheckBoxColumn at the first column, it's just a checkbox column without any relation with your datasource if you do not set the DataPropertyName property of this column.
Regards,
Ye
I think using a datagrid view is overkill if all you want to do is have a bound checkedlist box
Although it does not come up in the intellisense the following seems to work fine for me
Me.ChListGroups.DataSource = ds.Tables("Groups")
Me.ChListGroups.DisplayMember = "GroupName"
Me.ChListGroups.ValueMember = "id"