Skip to main content

TcxCustomPivotGrid.BeginUpdate Method

Acquires a lock on the pivot grid when performing bulk updates.

Declaration

procedure BeginUpdate;

Remarks

Use this method in combination with the EndUpdate method (that releases the lock) to wrap update statements that affect or repaint the pivot grid. Call these methods within try… finally blocks to ensure that the lock on the pivot grid’s repaint updates is removed in all cases.

For a pivot grid locked for updates with the BeginUpdate method call, you can optionally display a “Locked View“ image informing end-users that the pivot grid is awaiting updates. To accomplish this, set the pivot grid’s OptionsLockedStateImage.Mode property to a value other than lsimNever. Once the pivot grid is unlocked with the EndUpdate method call, it automatically hides the “Locked View” image.

See Also