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::CancelEdit Method ()
.NET Framework (current version)
Cancels edit mode for the currently selected cell and discards any changes.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The following code example illustrates the use of this method. This example is part of a larger example available in Column Fill Mode in the Windows Forms DataGridView Control.
.NET Framework
Available since 2.0
Available since 2.0
Show: