RowPosition

This property sets the position of a Grid row or column, enabling you to move rows to specific positions.

Syntax

object.RowPosition(number) [= value]

Parameters

object
Object expression that evaluates to a Grid control.
number
Long. Number of the row to be moved.
value
Integer. Numeric expression that specifies the new position of the row.

Remarks

The RowPosition property is write-only. The index and setting of the Grid control must correspond to a valid row number. The value must be in the range from 0 to the value of Rows –1 or an error occurs.

When you move a row with this property, all formatting information moves with the row, including width, height, alignment, colors, fonts, and so on. To move text only, use the Clip property instead.