Sign in Join
FPDoc Onlineexperiment

TCustomGrid.EndUpdate procedure

Member of TCustomGridpublicIn unit Grids

Finishes an active update to the grid control.

Declaration

pascal
procedure EndUpdate(aRefresh: Boolean=True)

Arguments

aRefreshTrue causes the grid control to be redrawn using Invalidate.

Description

EndUpdate is a method used to complete an update started by calling the BeginUpdate method.

EndUpdate decrements the internal update counter used in the control. When the counter reaches 0, there are no other updates active for the control. If ARefresh is set to True, the VisualChange method is called to update the cached sizes for the control and Invalidate the control display area.

BeginUpdate and EndUpdate are used to implement methods like:

  • Assign
  • AssignTo
  • Sort
  • ScrollToCell
  • DoAutoAdjustLayout
  • Clean
  • LoadFromCSVStream

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.