DataGridColumnStyle.Abort(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在衍生類別中覆寫時,請起始要求來插斷編輯程序。
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
資料列編號上該資料列的作業將被插斷。
備註
當 方法的 DataGridColumnStyle 方法傳回 false
時 Commit ,方法 Abort 會使用 DataGrid 方法。 在此情況下,資料行值會回復到其先前的值。
必須在 DataGridColumnStyle 傳回之前結束任何編輯作業。 Abort使用 方法來完成這項作業。
如果 ShouldAbort
控制項的參數設定為 true
,控制項 EndEdit 的 System.Windows.Forms.DataGrid 方法會間接叫 Abort 用。