Col, Row Properties (MSHFlexGrid)

       

Returns or sets the coordinates of the active cell in an MSHFlexGrid. These properties are not available at design time.

Syntax

object.Col [=number]
object.Row [=number]

Syntax for the Col and Row properties has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
number A Long value that specifies the position of the active cell.

Remarks

Use these properties to specify a cell in an MSHFlexGrid or to determine which row or column contains the current cell. Columns and rows are numbered from zero — rows are numbered from top to bottom, and columns are numbered from left to right.

Setting these properties automatically resets RowSel and ColSel, the selection becoming the current cell. Therefore, to specify a block selection, you must set Row and Col first, and then set RowSel and ColSel.

The value of the current cell, defined by the Col and Row settings, is the text contained in that cell. To modify a cell’s value without changing the selected Row and Col properties, use the TextMatrix property.