Sign in Join
FPDoc Onlineexperiment

TCustomDBGrid.GetSelectedState procedure

Member of TCustomDBGridprotectedIn unit DBGrids

Determines if a selection is available using the Focus and Options properties for the control.

Declaration

pascal
procedure GetSelectedState(AState: TGridDrawState; 
 out IsSelected: Boolean); override

Arguments

AState

TGridDrawState for the selection in the grid control.

IsSelected

Returns True if the grid as focus and active selection in the State property.

Description

GetSelectedState is an overridden method in TCustomDBGrid, and calls the inherited method on entry to get the value used in the IsSelected argument. It extends the inherited method to change IsSelected to False if the control is not Focused or dgAlwaysShowSelection has not been included in the Options for the grid control.

See TCustomGrid.GetSelectedState for the actions performed in the ancestor class.

See also

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