CheckedListBox Bug !
I have been doing some work with WinForms, I have a listbox and a CheckedListBox, that should be bound to the same datasource, and I have set the DataSource of each to my ArrayList object that holds the items that have to be displayed, the ListBox did the job successfully, while the CheckedListBox didn't !, after some searching I have come to know that the CheckedListBox doesn't support databinding !!, despite having DataMember, and DisplayMember, ValueMember ( unsurprisingly from base classes ) but it doesn't bind to a datasource, that's really a very strange and unexpected behaviour from this Control, however there is some steps to carry out to get the same binding technique, simply by looping and calling Add method for each item in the data source, refer to the above link to get the detailed bug description and resolution.
Labels: Windows Forms
<< Home