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

TCustomGrid.GetFirstVisibleRow

Gets the row number for the first visible non-fixed row in the grid.

Declaration

Source position: grids.pas line 1118

protected function TCustomGrid.GetFirstVisibleRow: Integer;

Function result

Row number for the first visible row.

Description

GetFirstVisibleRow is an Integer function used to get the row number for the first visible non-fixed row in the grid. A visible row is one which starts after the fixed rows specified in FixedRows and has a non-zero height for the row in RowHeights.

The return value contains the row number (zero-based) for the row matching the criteria. If a non-fixed row with a non-zero height is not found, the return value is set to RowCount.

GetFirstVisibleRow is called from the KeyDown method when handling Tab key navigation for the grid control.

See also

TCustomGrid.FixedRows

  

Number of the fixed rows in the grid.

TCustomGrid.RowCount

  

Number of rows in the grid.

TCustomGrid.RowHeights

  

Provides indexed access to the height for each row in the grid.

TCustomGrid.GetLastVisibleRow

  

Gets the row number for the last visible non-fixed row in the grid.

TCustomGrid.GetFirstVisibleColumn

  

Gets the column number for the first visible non-fixed column in the grid.

TCustomGrid.GetLastVisibleColumn

  

Gets the column number for the last visible non-fixed column in the grid.

TCustomGrid.KeyDown

  

Handles key down events for the grid control.


Version 4.0 Generated 2025-05-03 Home