TCustomDBGrid.GetSelectedState procedure
Determines if a selection is available using the Focus and Options properties for the control.
Declaration
procedure GetSelectedState(AState: TGridDrawState;
out IsSelected: Boolean); overrideArguments
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
- Options
- TCustomGrid.GetSelectedState
- TCustomGrid.Focused
- TGridDrawState
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
