Occurs when edit mode stops for the currently selected cell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The following code example illustrates how to handle this event to clear the row DataGridViewRow::ErrorText property in case it was previously set by a CellValidating event handler. The CellValidating event handler can clear the error text when the new cell value meets the validation criteria, but when the user reverts to the old cell value by pressing ESC, the CellValidating event does not occur. This example is part of a larger example available in Walkthrough: Validating Data in the Windows Forms DataGridView Control.