Data Binding CheckedListBox Control - Please Help!
Hi there
Can someone please show me sample code on checkedlistbox databinding? I have the following scenario:
I have a Datatable and a multi-column checkedlistbox control. The checkedlistbox is bound to a column (of data type Boolean) in the table by the following statement:
myCheckedlistbox.Databindings.Add("SelectedValue", myTable, "ColumnToUpdate").
I've also set all the other binding details, including myCheckedlistbox.ValueMember, which is set to the table column.
Everthing seems to be working fine, except my table column is not being updated. What code do I need to update the table column values when I check/uncheck any box on the control?
And is "SelectedValue" the correct property to use for databinding checkedlistbox controls? I've looked for examples and couldn't find any.
Your suggestions will be appreciated. Thanks.