RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.ColumnMoved Method

Provides the interface for a method that responds when the position of a column changes.

Pascal
procedure ColumnMoved(FromIndex: Longint; ToIndex: Longint); dynamic;
C++
__fastcall ColumnMoved(Longint FromIndex, Longint ToIndex);

ColumnMoved is called immediately after a column in the grid has moved. The FromIndex parameter is the old index of the column, and 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 OnColumnMoved event. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!