DataGridViewCell.IsInEditMode DataGridViewCell.IsInEditMode DataGridViewCell.IsInEditMode DataGridViewCell.IsInEditMode Property

定義

取得指出目前是否正在編輯這個儲存格的值。Gets a value indicating whether this cell is currently being edited.

public:
 property bool IsInEditMode { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsInEditMode { get; }
member this.IsInEditMode : bool
Public ReadOnly Property IsInEditMode As Boolean

屬性值

如果儲存格處於編輯模式中,則為 true,否則為 falsetrue if the cell is in edit mode; otherwise, false.

例外狀況

包含儲存格的資料列是共用的資料列。The row containing the cell is a shared row.

備註

當您直接使用資料格實例時,這個屬性會很有用。This property is useful when you are working directly with cell instances. 或者,您可以使用 DataGridView.IsCurrentCellInEditMode 屬性。Alternatively, you can use the DataGridView.IsCurrentCellInEditMode property. 您也可以處理DataGridView.CellBeginEdit事件,以判斷使用者進入編輯模式的時間。You can also handle the DataGridView.CellBeginEdit event to determine when the user enters edit mode.

適用於

另請參閱