System.Windows.Forms.DataGridColumnStyle.Abort Method

When overridden in a derived class, initiates a request to interrupt an edit procedure.

Syntax

protected abstract void Abort (int rowNum)

Parameters

rowNum
The row number upon which an operation is being interrupted.

Remarks

The DataGridColumnStyle.Abort(int) method is used by the System.Windows.Forms.DataGrid when the DataGridColumnStyle.Commit(CurrencyManager, int) method of the System.Windows.Forms.DataGridColumnStyle method returns false. In that case, the column value is rolled back to its previous value.

The System.Windows.Forms.DataGridColumnStyle must end any editing operations before returning. Use the DataGridColumnStyle.Abort(int) method to accomplish this.

The DataGrid.EndEdit(DataGridColumnStyle, int, bool) method of the System.Windows.Forms.DataGrid control indirectly invokes DataGridColumnStyle.Abort(int) if its ShouldAbort parameter is set to true.

Requirements

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