Sign in Join
FPDoc Onlineexperiment

TGridOperationEvent procedure type

In unit Grids

Defines the event handler signalled when rows or columns are added, deleted or moved in a grid.

Declaration

pascal
TGridOperationEvent = procedure(Sender: TObject; IsColumn: Boolean; 
 sIndex: Integer; tIndex: Integer)
 of object

Arguments

Sender

Control for the event notification.

IsColumnTrue when the notification is for a column and not a row.
sIndex

Starting index position for the row or column.

tIndex

Final index position for the row or column.

Description

TGridOperationEvent specifies an event handler signalled when rows or columns are added, deleted or moved in a custom-drawn grid control. TGridOperationEvent is the type used to implement event handler properties in TCustomDrawGrid, including:

  • OnColRowDeleted
  • OnColRowExchanged
  • OnColRowInserted/
  • OnColRowMoved

Applications must implement an object procedure using the signature for the event handler to respond to the event notification.

See also

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