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

TCustomGrid.GetLastVisibleRow

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

Declaration

Source position: grids.pas line 1120

protected function TCustomGrid.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

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.GetFirstVisibleRow

  

Gets the row number for the first 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