Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
C
Col, Row Properties
ColWordWrapOption Properties
Expand Minimize

Visual Basic: MSFlexGrid/MSHFlexGrid Controls

Visual Studio 6.0

Col, Row Properties (MSHFlexGrid)

See Also    Example    Applies To

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 cells value without changing the selected Row and Col properties, use the TextMatrix property.

Show:
© 2015 Microsoft