Skip to main content
All docs
V24.1

TreeListView.EndDataUpdate() Method

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.1.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public void EndDataUpdate()

Remarks

This method works like the DataControlBase.EndDataUpdate() that allows you to unlock the GridControl.

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 the performance of the GridControl during data shaping operations. Call the TreeListView.BeginDataUpdate(Boolean) method to lock updates.

An EndDataUpdate() method call should follow every TreeListView.BeginDataUpdate(Boolean) call.

The TreeListView saves the current state of all nodes (selected or expanded) when you call the TreeListView.BeginDataUpdate(Boolean) method and restores this state when you call EndDataUpdate(). If properties bound to the state are changed during data updates (see IsCheckBoxEnabledBinding and ExpandStateBinding), you can save the changed state. To do that, call the TreeListView.SaveNodesState method before EndDataUpdate().

See Also