Sign in Join
FPDoc Onlineexperiment

TCustomGrid.ColRowInserted procedure

Member of TCustomGridprotectedIn unit Grids

Performs actions needed when column or row data is inserted into the grid control.

Declaration

pascal
procedure ColRowInserted(IsColumn: Boolean; index: Integer); virtual

Arguments

IsColumnTrue if the operation inserted a column. False when a row was inserted.
index

Ordinal position for the column or row inserted into the grid control.

Description

ColRowInserted is a virtual method in TCustomGrid used to perform actions needed when a column or row is inserted into a grid control. The implementation is empty in TCustomGrid, and must be overridden in descendent classes.

The method is called from DoOPInsertColRow and occurs after the Columns definitions for the grid have been updated (when needed and enabled). It occurs before VisualChange is called or the bounds for an editor control are adjusted.

See also

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