TCustomDrawGrid.SizeChanged procedure
Performs actions needed when the number or columns or rows has been changed.
Declaration
procedure SizeChanged(OldColCount: Integer; OldRowCount: Integer)
; overrideArguments
OldColCount | Previous number of columns. |
OldRowCount | Previous number of rows. |
Description
SizeChanged is an overridden method in
TCustomDrawGrid
used to perform actions needed when the number or columns or rows has been
changed for the grid control. SizeChanged ensures that the changed values are
recorded in the internal virtual grid for the control, and performs a
notification for the change.
When OldColCount differs from the value in ColCount,
the current ColCount is stored in the virtual grid.
NotifyColRowChange is called to generate an insert or a delete
notification for the change in ColCount.
When OldRowCount differs from the value in RowCount, the current
RowCount is stored in the virtual grid.
NotifyColRowChange is called to generate an insert or a delete
notification for the change in RowCount.
SizeChanged is called from the AdjustCount and Clear
methods.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
