Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxCustomGrid6 BeginUpdate

BeginUpdate

Increase UpdateCount property. If UpdateCount is larger than 0, updates such as component redraw, calculations, event calls etc. will be postponed until EndUpdate method is called and UpdateCount = 0.

pas
procedure BeginUpdate(Options: TNxUpdateOptions = [uoScrollBar]);

Parameters

Options
TNxUpdateOptions
Specify type of updates that will still be processed.

Calling this method is recommended before heavily time consuming routines are started.

Example

pas
try
  // Only events and scrollbars will be processed
  NextGrid61.BeginUpdate([uoEvents, uoScrollBar]); 

  // Time consuming routine
  for i := 0 to NextGrid61.RowCount - 1 do
  begin
    // code here
  end;

finally
  NextGrid61.EndUpdate; // Repaint and recount
end;

Sign in