Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 NIB: 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
Available since 2.0
Return to top
Show:
© 2017 Microsoft