Back to Devexpress

DataViewBase.IsEditing Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-1582fc0a.md

latest3.0 KB
Original Source

DataViewBase.IsEditing Property

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

Declaration

csharp
public bool IsEditing { get; }
vb
Public ReadOnly Property IsEditing As Boolean

Property Value

TypeDescription
Boolean

true, if the View is in edit mode; otherwise, false.

|

Remarks

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

csharp
bool CanUndo() {
    return undoAction != null && !AssociatedObject.IsEditing && !isNewItemRowEditing && !AssociatedObject.IsDataSourceRefreshing;
}

wpf-data-grid-extend-crud-operations/VB/Undo/UndoCRUDOperationsBehavior.vb#L102

vb
Private Function CanUndo() As Boolean
    Return undoAction IsNot Nothing AndAlso Not AssociatedObject.IsEditing AndAlso Not isNewItemRowEditing AndAlso Not AssociatedObject.IsDataSourceRefreshing
End Function

See Also

Edit Cell Values in UI

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace