'Declaration
Public Event DraggingColumn As DragRowColEventHandler
public event DragRowColEventHandler DraggingColumn
Event Data
The event handler receives an argument of type DragRowColEventArgs containing data related to this event. The following DragRowColEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the drag operation should be canceled. |
Col | Gets the original index of the column that was dragged by the user. |
Position | Gets the new index of the column or row that was dragged by the user. |
Row | Gets the original index of the row that was dragged by the user. |
Remarks
This event only fires when the user drags a column using the mouse.
It does not fire when a row is moved using the ColumnCollection.Move method.
You can prevent specific columns from being dragged by the user by setting their RowCol.AllowDragging property to false.
See Also