Skip to main content
Table of Contents

TTMSFNCDataGridBase.BeginUpdate Method

Suspends layout recalculation and repainting until the matching EndUpdate call.

API unit family: TMSFNCDataGridBase Declaring type: TTMSFNCDataGridBase

Syntax

FMX.TMSFNCDataGridBase.hppPascalC++
procedure BeginUpdate; override;
virtual void __fastcall BeginUpdate();

Remarks

Calls nest: the control and its renderer (Root) each keep an update counter, and the grid recalculates only when the outermost EndUpdate brings the counter back to zero. Always pair the calls in a try/finally block; an unbalanced BeginUpdate leaves the grid frozen. Wrap bulk changes (filling cells, changing many widths, hiding many rows) in one block for best performance.

Examples

Pascal
Grid.BeginUpdate;
try { bulk changes } finally Grid.EndUpdate; end;