Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

ComboBox SelectedIndexChanged fire for every INotifyPropertyChanged

$
0
0

.Net 4.5 Windows Forms

I have a strange problem.

  • I inherit from a BindingList and the items support the INotifyPropertyChanged interface.
  • I assign the list to a combo box DataSource property.
  • I assign a handler to the combo box SelectedIndexChanged event.

Now, whenever an item property value changes the selectedindex changed event of the combo box fires, regardless whether or not the index changed.

Why?


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>