C
cj
I have a ComboBox that I populate using a DataSource (an ArrayList of
objects of the same type.)
When I add and remove items in the data source array list, I can't get the
list of items shown in the ComboBox to update automatically. I had trouble
getting the DataSource to take when I first created this ComboBox (a few
weeks ago), and the only way I found to get it to work is to set the Parent
property (and then I handled the ParentChanged event and set the DataSource,
DisplayMember, ValueMember, etc., there.
Do I have to set the Parent every time I make changes to the DataSource to
get the ComboBox to repopulate, or is there a better way?
Thanks,
cj
objects of the same type.)
When I add and remove items in the data source array list, I can't get the
list of items shown in the ComboBox to update automatically. I had trouble
getting the DataSource to take when I first created this ComboBox (a few
weeks ago), and the only way I found to get it to work is to set the Parent
property (and then I handled the ParentChanged event and set the DataSource,
DisplayMember, ValueMember, etc., there.
Do I have to set the Parent every time I make changes to the DataSource to
get the ComboBox to repopulate, or is there a better way?
Thanks,
cj