System.Windows.Forms.DataGrid.EndEdit Method

Requests an end to an edit operation taking place on the System.Windows.Forms.DataGrid control.

Syntax

public bool EndEdit (DataGridColumnStyle gridColumn, int rowNumber, bool shouldAbort)

Parameters

gridColumn
The System.Windows.Forms.DataGridColumnStyle to cease editing.
rowNumber
The number of the row to cease editing.
shouldAbort
Set to true if the current operation should be stopped.

Returns

true if the editing operation ceases; otherwise, false.

Remarks

The DataGrid.EndEdit(DataGridColumnStyle, int, bool) method returns false if the user is not editing (typing into) a cell.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0