.NET WinForms - programmatically exits current edit - DataGridView

How can you programmatically finish editing the current cell without losing your changes? I have my DataGridView set to EditOnEnter mode. I tried EndEdit () on the grid, but this returns the current change.

+2


source to share


1 answer


Assuming this is very close to what I did with the grid and don't see any code, the only thing I did differently is to follow the EndEdit call on the DataGridView with the EndEdit call on the BindingSource.



+2


source







All Articles