[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomGrid.BeforeMoveSelection

Performs actions needed before a selection is moved.

Declaration

Source position: grids.pas line 983

protected procedure TCustomGrid.BeforeMoveSelection(

  const DCol: Integer;

  const DRow: Integer

); virtual;

Arguments

DCol

  

Column number where the selection will be stored.

DRow

  

Row number where the selection will be stored.

Description

BeforeMoveSelection is called from the MoveExtend method whenever the current grid cursor location is about to change. The destination column and row are specified in the DCol and DRow parameters respectively.

The new location is known to be a valid selectable cell (see TCustomGrid.SelectCell), and is given in absolute cell coordinates. At this point the current grid location has not changed and can be retrieved with Col and Row properties.

The purpose of this method is to call the OnBeforeSelection event handler.

See also

TCustomGrid.MoveExtend

  

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

TCustomGrid.SelectCell

  

Determines whether the specified cell can be selected in the grid control.

TCustomDrawGrid.OnBeforeSelection

  

Event handler signalled before changing the Selection in the grid control.


Version 4.0 Generated 2025-05-03 Home