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

TCustomDBGrid.BeforeMoveSelection

Performs actions needed before the selected column in the grid is changed.

Declaration

Source position: dbgrids.pas line 423

protected procedure TCustomDBGrid.BeforeMoveSelection(

  const DCol: Integer;

  const DRow: Integer

); override;

Arguments

DCol

  

Destination column for the selection change.

DRow

  

Destination row for the selection change.

Description

BeforeMoveSelection is an overridden method in TCustomDbGrid used to perform actions needed before the selected column in the grid is changed.

DCol and DRow contain the column and row number for the cell selection that will be selected following the selection change.

BeforeMoveSelection calls the inherited method on entry to signal the OnBeforeSelection event handler (when assigned). When DCol is different than the value in the Col property, the OnColExit event handler is signalled (when assigned). An internal flag is set to indicate that a column enter event is pending.

BeforeMoveSelection is called from the inherited MoveExtend method.

See also

TCustomGrid.BeforeMoveSelection

  

Performs actions needed before a selection is moved.


Version 3.2 Generated 2024-02-25 Home