Binding a CheckedListBox

I have a CheckedListBox on my windows form that I would like to bind to a column in my database.

I have created the connection, adapter & dataset and they work fine because I tested in on a datagrid using a dataview. My question is, how can I bind my CheckedListBox to my column. I have tried various methods, but can't get it to populate.

Any ideas?
Who is Participating?
RonaldBiemansConnect With a Mentor Commented:
this works

CheckedListBox1.DataSource = ds.Tables(0)
CheckedListBox1.ValueMember = "id"
CheckedListBox1.DisplayMember = "mytext"
"mytext" is the name of the column I wanted to show
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.