BeforeMoveRow Event

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


Public Event BeforeMoveRow As BeforeMoveRowEventHandler

Applies To

Grid Object


The following parameters are available:

Parameter Description
Row The index of the row that was moved.
Position The new position of the row.


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

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

See Also

AllowUserReorder Property , AfterMoveRow Event