Skip to main content

TdxSpreadSheetCustomView.EndUpdate Method

Enables repainting operations for the worksheet after a BeginUpdate procedure call.

Declaration

procedure EndUpdate;

Remarks

Each time a change is made within the worksheet, the Spreadsheet control initiates repainting to reflect these changes. The list of operations resulting in the worksheet repainting includes row and column appearance customization, cell management, floating container customization, etc.

To improve the performance of a spreadsheet-based application, enclose the code that performs multiple worksheet changes within the BeginUpdate/EndUpdate procedure blocks.

The BeginUpdate procedure postpones updates. To apply the changes made, invoke the EndUpdate procedure. Ensure that every call to BeginUpdate is followed by a call to the EndUpdate procedure, even if an exception occurs.

Note

In addition to the worksheet’s BeginUpdate/EndUpdate procedures, individual floating containers, table item groups, and cell objects provide their own BeginUpdate/EndUpdate procedure sets.

See Also