BeforeMoveRow Event

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

Syntax

Public Event BeforeMoveRow As BeforeMoveRowEventHandler

Applies To

Grid Object

Parameters

The following parameters are available:

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

Remarks

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