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.
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:
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;