DataGridViewCell.IsInEditMode Property

Definition

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.

Applies to

See also