views:

638

answers:

1

How can you programmatically end the current cell edit without losing the change? I have my DataGridView set to EditOnEnter mode. I tried EndEdit() on the grid but this backs out the current edit.

+1  A: 

Assuming this is remarkably close to what I've done with the grid and without seeing any code, the only thing I did differently was to follow the call to EndEdit on the DataGridView with a call to EndEdit on the BindingSource.

Austin Salonen
You are saying this doesn't back out your current edit? And you are using EditOnEnter mode?
tyndall