Sign in Join
FPDoc Onlineexperiment

TCustomGrid.MoveSelection procedure

Member of TCustomGridprotectedIn unit Grids

Signals the OnSelection event handler for a new mouse selection.

Declaration

pascal
procedure MoveSelection; virtual

Description

MoveSelection signals the OnSelection event handler (when assigned) using the values in Col and Row as arguments.

Use The OnBeforeSelection, OnSelection, and OnAfterSelection event handlers to perform actions needed before, during, or after a range is selected on the grid control.

Use OnSelectCell to determine whether a specific column and row number can actually be selected.

Called from the MouseDown method when a mouse click in the non-fixed area for the grid is detected. It is also called from MoveExtend when range selection (goRangeSelect) is enabled in the Options for the control.

See also

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