DataControlBase.EndDataUpdate() Method

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.Core.dll

Declaration

public void EndDataUpdate()
Public Sub

Remarks

To prevent internal data updates, use the DataControlBase.BeginDataUpdate and 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 DataControlBase.BeginDataUpdate and EndDataUpdate methods, the grid performs only a single data update, reflecting all changes made after the EndDataUpdate method is called.

NOTE

The EndDataUpdate method automatically repairs the previous node state that is saved when the DataControlBase.BeginDataUpdate method is called. To avoid node state repairs, call the TreeListView.SaveNodesState method before EndDataUpdate.

See Also