Sign in Join
FPDoc Onlineexperiment

TCustomGrid.MoveExtend function

Member of TCustomGridprotectedIn unit Grids

Moves the selected cell or extends a selection using the specified column and row values.

Declaration

pascal
function MoveExtend(Relative: Boolean; DCol: Integer; DRow: Integer; 
 ForceFullyVisible: Boolean=True): Boolean

Arguments

RelativeTrue if the selection is extended by the relative number of columns and rows. False to move the selection to the specified cell coordinates.
DCol

Column number for the selection, or the delta when a selection is extended.

DRow

Row number for the selection, or the delta when a selection is extended.

ForceFullyVisibleTrue if the cell in DCol and DRow must be fully visible after the selection change.

Function result

True if the selection was moved or extended in the method.

Description

Calls TryMoveSelection to perform the selection change using the specified arguments. No actions are performed in the method when:

  • FixedGrid is True. All cells are fixed and cannot be selected.
  • DCol and DRow are not valid for the Col, Row, ColCount or RowCount for the grid control.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.