Skip to main content
A newer version of this page is available. .

DataControlBase.EndDataUpdate() Method

Unlocks visual and internal data updates within the GridControl and applies all pending changes after a BeginDataUpdate call.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public void EndDataUpdate()

Remarks

If you lock updates within 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.BeginDataUpdate method to lock updates.

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

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

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the EndDataUpdate() 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.

See Also