Skip to main content

DataControlBase.EndDataUpdate() Method

Enables visual and internal data updates after the DataControlBase.BeginDataUpdate method call, and updates the grid.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll


public void EndDataUpdate()


To prevent internal data updates, use the DataControlBase.BeginDataUpdate and EndDataUpdate methods. This allows you to improve the control’s performance when sorting 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 DataControlBase.BeginDataUpdate and EndDataUpdate methods, the grid performs only a single data update, reflecting all changes made, after the EndDataUpdate method is called.


If a data source is modified from another thread (e.g. using Parallel.ForEach), changes made should be enclosed within the DataControlBase.BeginDataUpdate and EndDataUpdate method calls. Otherwise, the grid correctly processes these changes and an exception will be thrown.

See Also