Vcl.Grids.TCustomGrid.ColumnMoved
Delphi
procedure ColumnMoved(FromIndex, ToIndex: Longint); dynamic;
C++
DYNAMIC void __fastcall ColumnMoved(int FromIndex, int ToIndex);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TCustomGrid |
Description
Provides the interface for a method that responds when the position of a column changes.
ColumnMoved is called immediately after a column in the grid has moved.
The FromIndex parameter is the old index of the column,
The ToIndex parameter is the new index.
The ColumnMoved method of TCustomGrid does nothing. Descendants of TCustomGrid override this method to make internal adjustments or to generate an event, such as Vcl.Grids.TCustomDrawGrid.OnColumnMoved.