DataControlBase.BeginDataUpdate() Method

Locks visual and internal data updates within the GridControl. Call the DataControlBase.EndDataUpdate method to apply all pending changes and resume updates.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public void BeginDataUpdate()

Remarks

If you lock the GridControl, a user cannot change data within the control. You can accumulate changes and update data in one action. As a result, you can improve performance of the GridControl when you perform data shaping operations. Call the DataControlBase.EndDataUpdate method to apply the pending changes.

A DataControlBase.EndDataUpdate method call should follow every BeginDataUpdate method call.

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

The TreeListView saves a node state (selected or expanded) when you call the BeginDataUpdate method and restores this state when you call DataControlBase.EndDataUpdate. If you want to save a new node state, call the TreeListView.SaveNodesState method before DataControlBase.EndDataUpdate.

See Also