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
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.
Related GitHub Examples
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.