Sign in Join
FPDoc Onlineexperiment

TCustomGrid.GetLastVisibleRow function

Member of TCustomGridprotectedIn unit Grids

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

Declaration

pascal
function GetLastVisibleRow: Integer

Function result

Row number for the last visible non-fixed row.

Description

GetLastVisibleRow is an Integer function used to get the row number for the last visible non-fixed row in the grid. A visible row is one which 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 row with a non-zero height is not found, the return value contains -1.

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

See also

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