[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Performs actions needed when the number or columns or rows has been changed.
Source position: grids.pas line 1440
protected procedure TCustomDrawGrid.SizeChanged( |
OldColCount: Integer; |
OldRowCount: Integer |
); override; |
OldColCount |
|
Previous number of columns. |
OldRowCount |
|
Previous number of rows. |
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.
|
Performs actions needed when the number of columns or rows has been changed. |
Version 4.0 | Generated 2025-05-03 | Home |