DataGridViewCell.IsInEditMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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; }
[<System.ComponentModel.Browsable(false)>]
member this.IsInEditMode : bool
Public ReadOnly Property IsInEditMode As Boolean
Property Value
true
if the cell is in edit mode; otherwise, false
.
- Attributes
Exceptions
The row containing the cell is a shared row.
Remarks
This property is useful when you are working directly with cell instances. Alternatively, you can use the DataGridView.IsCurrentCellInEditMode property. You can also handle the DataGridView.CellBeginEdit event to determine when the user enters edit mode.