RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.MoveColRow Method

Selects the cell indicated by the ACol and ARow parameters.

Pascal
procedure MoveColRow(ACol: Longint; ARow: Longint; MoveAnchor: Boolean; Show: Boolean);
C++
__fastcall MoveColRow(Longint ACol, Longint ARow, Boolean MoveAnchor, Boolean Show);

Grid controls call MoveColRow internally when changing the selected cell or cells. MoveColRow selects the indicated cell, but does not take care of removing any previous selection.  

The ACol and ARow parameters are the column index and the row index of the cell to be selected. The MoveAnchor parameter indicates whether the new cell becomes the upper left corner of the selected region. MoveAnchor is true unless MoveColRow is called when extending a multicell selected region. The Show parameter indicates whether MoveColRow should ensure that the newly selected cell is visible. 

 

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