BeforeMoveColumn Event

Fired before a column is moved by dragging on the header.


Public Event BeforeMoveColumn As BeforeMoveColumnEventHandler

Applies To

Grid Object


The following parameters are available:

Parameter Description
Col The index of the column that was moved.
Position The new position of the column.


The user may move rows and columns using the mouse, depending on the setting of the AllowUserReorder property.

This event is only fired if the column was moved by dragging it into the header. It is not fired after before moving with the Column.Position property.

This event is useful when you want to prevent the user from moving certain columns to invalid positions. You may do so by modifying the value of the Position parameter.

See Also

AllowUserReorder Property , AfterMoveColumn Event