Back to Devexpress

DataViewBase.IsDataSourceRefreshing Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-b94ff787.md

latest2.3 KB
Original Source

DataViewBase.IsDataSourceRefreshing Property

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

Type
Boolean

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsDataSourceRefreshing 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

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace