AfterMoveColumn Event

Fired after a column is moved by dragging on the ExplorerBar.

Syntax

Private Sub VSFlexGrid_AfterMoveColumn( ByVal Col As Long, Position As Long)

Remarks

This event is only fired if the column was moved by dragging it using the ExplorerBar. It is not fired if the column was moved with the ColPosition property.

The parameters for the AfterMoveColumn event are described below:

Col As Long

This parameter holds the index of the column that was moved.

Position As Long

This parameter holds the new position of the column.

This event is useful if you want to synchronize some other user-interface element to the columns on a grid, or to keep track of a column's position. To prevent the user from moving certain columns to certain positions, use the BeforeMoveColumn event instead.

See Also

VSFlexGrid Control