StyleGrid REALbasic Plugin

StyleGrid.SwapRows Method

Allows to very quickly exchange two rows by directly accessing the index vector.

SwapRows(
   rowA as Integer,
   rowB as Integer)

Parameters

rowA
The number of one of the row to swap.
rowB
The number of the other row to swap.

Remarks

The two parameters are not bounds checked for faster speed.
So be aware that the first row is 1 and the last row equals the row count.

SwapRows does not force a redraw of the grid, you should call the Refresh method instead.

See Also

StyleGrid Control