DataGridView bound to BindingList does not refresh when value changed

后端 未结 5 425
独厮守ぢ
独厮守ぢ 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:26

    It sounds as your Change Object notification is not triggered / handled correctly. I personally always use the BindingSource object when binding to a dataGridView.

    I would check out the DataGridView FAQ and the DataBinding FAQ and search for object change notification.

    If you are using ADO.Net, don't forget the call the .Validate() and .EndEdit() methods.

提交回复
热议问题