RowPosition Property

Moves a given row to a new position.

Syntax

[form!]vsFlexGrid.RowPosition(Row As Long)[ = NewPosition As Long ]

Remarks

The Row and NewPosition parameters must be valid row indices (in the range 0 to Rows - 1), or an error will be generated.

When a column or row is moved with ColPosition or RowPosition, all formatting information moves with it, including width, height, alignment, colors, fonts, and so on. To move text only, use the Clip property instead.

See the ColPosition property for an example.

Data Type

Long

See Also

VSFlexGrid Control