ComboBox doesn't automatically update when DataSource changes?

This is stated in the MSDN forums: The IBindingList interface contains the ListChanged event where controls like the combobox hook up into if the underlying datasource assigned to it implements the said interface. Your datasource must raise the corresponding ListChanged with proper ListChangeEventArgs if ever you add, remove, change, etc. Your IBindingList implementor. This way, whenever the underlying source you used to bind to your combobox is changed, the corresponding UI control (combobox) is refreshed.

You say you are using BindingList and in fact you do get the combobox to reflect add or remove items events. I think you should do the update of the items already inside your BindingList in another way because looks like the proper BindingList events are not firing. You could either investigate into that or simply live with reset and reassign the DataSource, I don't think is too bad, you are in Statefull Windows Forms application not in SatetLess Webforms so you do have your objects there all the time :).

You need observable collections and IPropertyChange implementation: ComboBox bound to a ObservableCollection does not update.

1 The guy is talking about Windows Forms and not WPF. – Tigran Sep 11 at 17:35.

You need observable collections and IPropertyChange implementation.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions