I can't figure how to use the checkedlistBox control. Here is my situation.
When I load my form, I add ti the checkedListBox all the possible values. They are all unchecked and came from a DataTable.
Here are the values
ID Value
2045 ItemA
2342 ItemB
2434 ItemC
2342 ItemD
then when I load my record, it contains a collections of id of items to be checked.
Record 1 items to be checked 2045 and 2434
Record 2 items to be checked 2342
The checkedListBox use Indice!! I can't do anythin with indice. I have to deal with my ID
I hope I dont have to do a loop in my checklistbox and check if the id equal the record items collections id!!
Any idea?
Thanks
When I load my form, I add ti the checkedListBox all the possible values. They are all unchecked and came from a DataTable.
Here are the values
ID Value
2045 ItemA
2342 ItemB
2434 ItemC
2342 ItemD
then when I load my record, it contains a collections of id of items to be checked.
Record 1 items to be checked 2045 and 2434
Record 2 items to be checked 2342
The checkedListBox use Indice!! I can't do anythin with indice. I have to deal with my ID
I hope I dont have to do a loop in my checklistbox and check if the id equal the record items collections id!!
Any idea?
Thanks