DataControlBase.BeginDataUpdate() Method
Prevents visual and internal data updates until the DataControlBase.EndDataUpdate method is called.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v20.2.Core.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core
Declaration
Remarks
To prevent internal data updates, use the BeginDataUpdate and DataControlBase.EndDataUpdate methods. This allows you to improve the control’s performance when sorting or grouping by a column, adding, deleting, or modifying records at the data source level, etc.
If the code that performs a sequence of any of these operations is wrapped with the BeginDataUpdate and DataControlBase.EndDataUpdate methods, the grid performs only a single data update, reflecting all changes made, after the DataControlBase.EndDataUpdate method is called.
Note
The GridControl takes into account the number of the BeginDataUpdate and EndDataUpdate method calls. For example, if you invoke BeginDataUpdate twice, invoke EndDataUpdate twice as well.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the BeginDataUpdate() 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.