Help Center

TopRowproperty

Returns or sets the uppermost visible row (other than a fixed row) in the MSHFlexGrid.

Windowspropertydoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

PROPERTY TopRow () AS LONG
PROPERTY TopRow (BYVAL nRow AS LONG)

Parameters

NameDescription
nRowA Long value that specifies the uppermost row in the grid.

Description

Returns or sets the uppermost visible row (other than a fixed row) in the grid. It sets or returns the index of the first visible scrollable row at the top of the grid.

Remarks

Assigning a value to TopRow causes the grid to scroll so that the specified row index is the topmost row displayed immediately below the fixed header rows.

Examples

' Ensure row 49 is at the top of the visible data area grid.TopRow = 49

' Scroll to the bottom as far as possible grid.TopRow = grid.Rows - 1

Reference