DataGridViewCell.IsInEditMode 屬性

定義

取得指出目前是否正在編輯這個儲存格的值。

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

屬性值

如果儲存格處於編輯模式中,則為 true,否則為 false

屬性

例外狀況

包含儲存格的資料列是共用的資料列。

備註

當您直接使用資料格實例時,這個屬性很有用。 或者,您可以使用 DataGridView.IsCurrentCellInEditMode 屬性。 您也可以處理 事件, DataGridView.CellBeginEdit 以判斷使用者何時進入編輯模式。

適用於

另請參閱