TCustomDrawGrid.TopRow property
The first visible row in the grid.
Declaration
property TopRow:;Description
TopRow is an
Integer property with the position of the
first row visible in the control. Rows are numbered from 0 to RowCount-1 but
the first accessible row is at the ordinal position in FixedRows. In short:
when FixedRows is 1, row number 0 is not accessible. When FixedRows is 2, row
numbers 0 and 1 are not accessible. Ad infinitum.
Setting a new value for the property causes the grid to scroll until the specified row number becomes visible. The current column a selection is not affected. No actions are performed if the row is already visible (even if it is not the first visible row).
The property value is read from and written to the cached internal TopLeft member for the control.
Use ScrollToCell to make the cell at a specific column and row number become visible in the grid control.
This description is the one of Grids.TCustomGrid.TopRow.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
