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

TCustomDBGrid.GetSelectedState

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

Declaration

Source position: dbgrids.pas line 480

protected procedure TCustomDBGrid.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

TCustomDBGrid.Options

  

Contains the optional features or behaviors that are enabled for the grid control.

TCustomGrid.GetSelectedState

  

Gets the effective selected state using the control Options and the grid draw state.

TCustomGrid.Focused

  

Indicates if the grid is focused or has an active focused cell Editor.

TGridDrawState


Version 3.2 Generated 2024-02-25 Home