Export (0) Print
Expand All
Expand Minimize

DataGridView::CellEndEdit Event

Occurs when edit mode stops for the currently selected cell.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
 event DataGridViewCellEventHandler^ CellEndEdit {
	void add (DataGridViewCellEventHandler^ value);
	void remove (DataGridViewCellEventHandler^ value);
}

For more information about handling events, see Consuming Events.

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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft