RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.RowMoved Method

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

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

RowMoved is called immediately after a row in the grid changes position. The FromIndex parameter is the old index of the row, and the ToIndex parameter is the new index. The RowMoved method of TCustomGrid does nothing. Descendants of TCustomGrid override this method to make internal adjustments or to generate an OnRowMoved event. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!