[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
The first visible row in the grid.
Source position: grids.pas line 1297
protected property TCustomGrid.TopRow : Integer |
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.
Version 4.0 | Generated 2025-05-03 | Home |