TCustomDrawGrid.ColRowMoved procedure
Performs actions when a column or row is moved in the grid.
Declaration
procedure ColRowMoved(IsColumn: Boolean; FromIndex: Integer;
ToIndex: Integer); overrideArguments
IsColumn | True if a column is moved in the method. False if a row is moved. |
FromIndex | Position in the grid with the column or row values moved in the method. |
ToIndex | Position in the grid where the values are stored after they have been moved. |
Description
ColRowMoved is overridden in
TCustomDrawGrid to
implement the virtual method defined in the ancestor class. It is used to
perform actions when a column or a row is moved in the grid control.
ColRowMoved calls the MoveColRow method in the internal virtual grid for the class to change the position for the column or row. The OnColRowMoved event handler is signalled (when assigned) prior to exiting from the method.
ColRowMoved is called from the DoOPMoveColRow method, and occurs after Columns has 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.
