DataGridColumnStyle.Abort(Int32) 方法

定义

在派生类中被重写时,将启动一个请求来中断编辑过程。

protected public:
 abstract void Abort(int rowNum);
protected internal abstract void Abort (int rowNum);
abstract member Abort : int -> unit
Protected Friend MustOverride Sub Abort (rowNum As Integer)

参数

rowNum
Int32

在其上中断操作的行的行号。

注解

此方法AbortDataGrid方法返回时CommitDataGridColumnStyle使用false。 在这种情况下,列值将回滚到其以前的值。

必须在 DataGridColumnStyle 返回之前结束任何编辑操作。 使用该方法 Abort 完成此操作。

The EndEdit method of the System.Windows.Forms.DataGrid control indirectly invokes Abort if its ShouldAbort parameter is set to true.

适用于

另请参阅