[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomDrawGrid.SizeChanged

Performs actions needed when the number or columns or rows has been changed.

Declaration

Source position: grids.pas line 1440

protected procedure TCustomDrawGrid.SizeChanged(

  OldColCount: Integer;

  OldRowCount: Integer

); override;

Arguments

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

TCustomGrid.SizeChanged

  

Performs actions needed when the number of columns or rows has been changed.


Version 4.0 Generated 2025-05-03 Home