Hello,
I have a combobox that is bound to a List<string>.
I update my List<string> every now and then, adding new items or removing some. I expected the combobox item list would be automatically updated to reflect the changes but that's not happening. The item list always stays the same.
Doing .Refresh() and .Update() on the combobox did not help. The only solution I've found so far is to unset the datasource, and then set it again. Behold the ugly code:
mycombo.DataSource = null;
mycombo.DataSource = myList
This works but makes my combo flicker. Any better solution or explaination about why the itemlist is not updating?
Thank you




Reply With Quote