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

TCustomGrid.GetGridDrawState

Gets the grid drawing state for the cell with the specified column and row numbers.

Declaration

Source position: grids.pas line 1104

protected function TCustomGrid.GetGridDrawState(

  ACol: Integer;

  ARow: Integer

):TGridDrawState;

Arguments

ACol

  

Column number for the cell examined in the method.

ARow

  

Row number for the cell examined in the method.

Function result

TGridDrawState instance with the state flags for the specified cell.

Description

GetGridDrawState is a TGridDrawState function used to get the state flags for the cell specified in ACol and ARow. The return value can contain the following enumeration values:

gdFixed
ARow is one of the FixedRows for the grid.
gdFocused
ACol and ARow have the same values as the Col and Row properties.
gdSelected
ACol and ARow have the same values as the Col and Row properties, or the cell is included in a selection range.
gdRowHighlight
Row highlighting is enabled in Options, Row and aRow have the same value, and the cell is not a fixed cell.
gdPushed
ACol and ARow match the cached PushedCell coordinates.
gdHot
ACol and ARow match the cached HotCell coordinates, and the cell is not "pushed".

GetGridDrawState is called from the DrawRow and ShowCellHintWIndow methods.

See also

TCustomGrid.DrawRow

  

Draws the columns for the specified row in the grid control.

TCustomGrid.ShowCellHintWIndow

  

Gets and displays the cell hint(s) for the current cell in the grid.

TGridDrawState

  

Enumeration with Grid draw state values.


Version 4.0 Generated 2025-05-03 Home