[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Performs actions when a column or row is moved in the grid.
Source position: grids.pas line 1421
protected procedure TCustomDrawGrid.ColRowMoved( |
IsColumn: Boolean; |
FromIndex: Integer; |
ToIndex: Integer |
); override; |
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. |
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.
|
Event handler signalled when a column or row in the grid is moved. |
|
|
Performs actions when a column or row is moved in the grid. |
|
|
Performs a move operation for the column or row at the specified position. |
Version 4.0 | Generated 2025-05-03 | Home |