Back to Devexpress

SpreadsheetControl.IsCellEditorActive Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-0e45889e.md

latest3.7 KB
Original Source

SpreadsheetControl.IsCellEditorActive Property

Gets whether the cell editor is currently active.

Namespace : DevExpress.Xpf.Spreadsheet

Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
[Browsable(false)]
public bool IsCellEditorActive { get; }
vb
<Browsable(False)>
Public ReadOnly Property IsCellEditorActive As Boolean

Property Value

TypeDescription
Boolean

true, if the cell editor is opened; otherwise, false.

|

Remarks

Before the cell editor is opened, the SpreadsheetControl.CellBeginEdit event is raised. You can handle this event to obtain the location of the opened cell editor or to prevent the cell editor from being opened. To close the cell editor, use the SpreadsheetControl.CloseCellEditor method. The SpreadsheetControl.CellEndEdit or SpreadsheetControl.CellCancelEdit event occurs before the cell editor is closed, depending on whether an entered cell value is committed or rolled back.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsCellEditorActive property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-spreadsheet-control-create-a-data-entry-form/CS/WpfDataEntryFormSample/SpreadsheetBindingManager.cs#L244

csharp
private bool IsCellEditorActive => control != null && control.IsCellEditorActive;

wpf-spreadsheet-control-create-a-data-entry-form/VB/WpfDataEntryFormSample/SpreadsheetBindingManager.vb#L227

vb
Get
    Return _control IsNot Nothing AndAlso _control.IsCellEditorActive
End Get

See Also

CloseCellEditor(CellEditorEnterValueMode)

CellBeginEdit

CellEndEdit

CellCancelEdit

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace