|
-
May 12th, 2004, 04:38 AM
#1
Thread Starter
Member
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.
Last edited by tina33; May 13th, 2004 at 05:11 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|