KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
For some reason when adding or remove items from the DataSource (a simple BindingList) the ComboBox updates accordingly but if I edit an item like this, it doesn't update automatically: myBindingList[index].Name = "NewName"; myBindingList[index].Value = newValue; In order to get it to update when I edit an item as opposed to creating or removing an item I have to do this after the change is made: myComboBox.DataSource = null; myComboBox.DataSource = myBindingList; This fixes the problem but it seems like a rather messy solution. Also with large lists it may become slow (premature optimization I know) but still is there a way to force the ComboBox to update without completely re-assigning its DataSource? Thanks for reading.
Tags (comma-separated)
Save Edits
Cancel