wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-1582fc0a.md
Gets whether the focused cell is currently being edited. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public bool IsEditing { get; }
Public ReadOnly Property IsEditing As Boolean
| Type | Description |
|---|---|
| Boolean |
true, if the View is in edit mode; otherwise, false.
|
If data editing is allowed, use the DataViewBase.ShowEditor method to activate the focused cell’s inplace editor. After the editor has been shown, the View functions in edit mode and the IsEditing property returns true. The DataViewBase.ActiveEditor property returns the focused cell’s editor.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsEditing 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-data-grid-extend-crud-operations/CS/Undo/UndoCRUDOperationsBehavior.cs#L75
bool CanUndo() {
return undoAction != null && !AssociatedObject.IsEditing && !isNewItemRowEditing && !AssociatedObject.IsDataSourceRefreshing;
}
wpf-data-grid-extend-crud-operations/VB/Undo/UndoCRUDOperationsBehavior.vb#L102
Private Function CanUndo() As Boolean
Return undoAction IsNot Nothing AndAlso Not AssociatedObject.IsEditing AndAlso Not isNewItemRowEditing AndAlso Not AssociatedObject.IsDataSourceRefreshing
End Function
See Also