wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-dot-opencelleditor-x28-devexpress-dot-xtraspreadsheet-dot-celleditormode-x29.md
Invokes a cell editor and switches to the spreadsheet edit mode, allowing you to edit cell content.
Namespace : DevExpress.Xpf.Spreadsheet
Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll
NuGet Package : DevExpress.Wpf.Spreadsheet
public bool OpenCellEditor(
CellEditorMode mode
)
Public Function OpenCellEditor(
mode As CellEditorMode
) As Boolean
| Name | Type | Description |
|---|---|---|
| mode | CellEditorMode |
A CellEditorMode that specifies the editor and the mode in which it is activated.
|
| Type | Description |
|---|---|
| Boolean |
true, if the cell editor is active; otherwise, false.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the OpenCellEditor(CellEditorMode) method.
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/MainWindow.xaml.cs#L85
if (editors.Count == 1)
spreadsheetControl1.OpenCellEditor(DevExpress.XtraSpreadsheet.CellEditorMode.Edit);
}
wpf-spreadsheet-control-create-a-data-entry-form/VB/WpfDataEntryFormSample/MainWindow.xaml.vb#L84
If editors.Count = 1 Then
spreadsheetControl1.OpenCellEditor(DevExpress.XtraSpreadsheet.CellEditorMode.Edit)
End If
See Also