Skip to main content

TcxCustomTabControlProperties.BeginUpdate Method

Disables updates to the control.

Declaration

procedure BeginUpdate;

Remarks

When performing several updates to the page control simultaneously, it makes sense to prevent changes to the View until all the updates are complete. For this purpose, use the BeginUpdate method. This method locks the control, increasing overall performance and preventing the View from flickering.

After completing the updates, a lock must be released to enable the View to refresh. This operation can be performed using either the EndUpdate or CancelUpdate method. The difference between these methods is that the EndUpdate method also forces the control to invalidate itself, while the CancelUpdate method only releases a lock.

Since the execution of updates can exit with either a normal or exception state, these updates and the EndUpdate or CancelUpdate method should be contained within try… finally… blocks following the BeginUpdate method, to ensure that the lock will be released in all cases.

See Also