Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataControlBase.RefreshData() Method

Updates the control’s data.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public void RefreshData()

#Remarks

A data source type affects how the GridControl processes data shaping operations:

IBindingList
Data shaping operations are already enabled.
INotifyPropertyChanged
The GridControl ignores data shaping operations. To process these operations, set the AllowLiveDataShaping property to true or call the RefreshData method.
Virtual Sources
If your data is changed on the data source level, call the VirtualSourceBase.RefreshRows method instead.

The RefreshData method does not update data in columns bound to nested properties through the ColumnBase.Binding property. Use the ColumnBase.FieldName property instead.

Refer to the following topic for information on how to optimize data updates within the GridControl: Frequent Data Updates.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RefreshData() 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.

See Also