TopRow

This property returns and sets the uppermost visible row,other than a fixed row, in the Grid control.

Syntax

object.TopRow [= number]

Parameters

object
Object expression that evaluates to a Grid control.
number
Long. Numeric expression that specifies the uppermost row in a Grid control.

Remarks

The TopRow property is unavailable at design time.

You can use this property in code to programmatically read or set the visible upper row of a Grid control. Use the LeftCol property to determine the leftmost visible column in the Grid control.

When setting this property, the largest possible row number is the total number of rows minus the number of rows that can be visible in the Grid control. Attempting to set TopRow to a greater row number causes the Grid control to set it the row to the largest possible value.