[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TCustomTreeView.EndUpdate

Finishes an update process for the tree view control.

## Declaration

Source position: comctrls.pp line 3727

`public procedure TCustomTreeView.EndUpdate;`

## Description

EndUpdate is a method used to finish an update process for the tree view control. EndUpdate is used with BeginUpdate to maintain update counters used to consolidate updates and event notifications in the control.

EndUpdates raises an Exception (catchable in the debugger) if the internal update counter is 0 or less when the method is called.

EndUpdates calls the EndUpdate method in the Items container. UpdateScrollBars is called to refresh the position in the visible scroll bars when a change actually occurred in the list of tree nodes.

## Errors

Raises an Exception if the internal update counter is 0 or less when the method is called.

## See also

TCustomTreeView.BeginUpdate |  | Starts an update process for the tree view control.