I am trying to use windows forms databinding to hook up a combobox to a ViewModel class.
var items = new BindingList<Person>();
comboBox.DataSource = items;
comboBox.DisplayMember = "Name";
All works ok except when I remove items from the list. For example if I remove the currently selected item (selected in the combobox) the selectedIndexChanged and SelectedValueChanged events of the combobox don’t fire.
Found an answer. I had to use a BindingSource as middleman
This way I do get value changed events and even more than one when I deleted something.