Vcl.Grids.TCustomGrid.MoveColRow
Delphi
procedure MoveColRow(ACol, ARow: Longint; MoveAnchor, Show: Boolean);
C++
void __fastcall MoveColRow(int ACol, int ARow, bool MoveAnchor, bool Show);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TCustomGrid |
Description
Selects the cell indicated by the ACol and ARow parameters.
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.