DataGridView bound to BindingList does not refresh when value changed

后端 未结 5 421
独厮守ぢ
独厮守ぢ 2020-12-05 07:47

I have a DataGridView bound to a BindingList (C# Windows Forms). If I change one of the values in an item in the list it does not immediately show up in the grid. If I click

5条回答
  •  温柔的废话
    2020-12-05 08:27

    ListChanged notifications for item value changes are only raised if the list item type implements the INotifyPropertyChanged interface.

    Taken from: http://msdn.microsoft.com/en-us/library/ms132742.aspx

    So my first question would be: Implements your item the INotifyPropertyChanged properly?

提交回复
热议问题