Help Center

Rowproperty

Returns or sets the coordinates of the active cell in an 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 Row () AS LONG
PROPERTY Row (BYVAL nRow AS LONG)

Parameters

NameDescription
nRowThe row position of the active cell. The first row in the grid is index 0. If you have one fixed header row, the first data row is typically index 1.

Description

Returns or sets the row position of the active cell or the start of a selection.

Remarks

This property identifies the vertical position of the active cell or the start of a selection.

To modify a cell’s value without changing the selected Row and Col properties, use the TextMatrix property.

Example

' Move the active focus to the fifth row grid.Row = 4 grid.Col = 1 ' Specify the column too

' Retrieve the text from that active cell Dim cellData As DWString cellData = grid.Text

Reference