FlexPivot for WinForms
FinishEditing(Boolean) メソッド

C1.Win.C1FlexGrid.4.5.2 アセンブリ > C1.Win.C1FlexGrid 名前空間 > C1FlexGridBase クラス > FinishEditing メソッド : FinishEditing(Boolean) メソッド
Whether to cancel the current edits and revert the cell to its original value.
Finishes editing the current cell and takes the grid out of edit mode, optionally canceling the edits.
シンタックス
'宣言
 
Public Overloads Function FinishEditing( _
   ByVal cancel As System.Boolean _
) As System.Boolean
public System.bool FinishEditing( 
   System.bool cancel
)

パラメータ

cancel
Whether to cancel the current edits and revert the cell to its original value.

戻り値の型

True if the grid left edit mode successfully, false otherwise.
解説

If the cancel parameter is set to false, the grid tries to apply the edits, and fires the ValidateEdit, LeaveEdit, and AfterEdit events as usual. If validation fails, the grid stays in edit mode (and FinishEditing returns false).

If the cancel parameter is set to true, the original cell value is restored and the grid is guaranteed to leave the edit mode. In this case, only the LeaveEdit event fires.

To determine whether the grid is in edit mode, check whether the Editor property is null.

参照

C1FlexGridBase クラス
C1FlexGridBase メンバ
オーバーロード一覧