I have a DataGridView bound to the collection, which is changed frequently (not collection itself, but properties of the objects). When I start editing a cell, it quickly replaces with new value, which came from PropertyChanged event. Is there anyway to “suspend” currently editing cell from updating.
I have a DataGridView bound to the collection, which is changed frequently (not collection
Share
You should be able to achieve what you want by adding a
BindingSource.Within the CellBeginEdit and CellEndEdit events of the datagridview you can then change the binding source’s RaiseListChangedEvents property:
I tested this with a background worker with a sleep inside it started by a button, and an update to the bound list after that. I pressed the button then edited a cell, and after the timer expired, my changes to the cell still held.
When I didn’t begin editing the cell changes to the list were changed.
One thing to note is that this is for the whole binding source, not a particular cell.