Skip to main content

WinExplorerView.ItemDrag Event

Occurs when an end-user clicks an item within this WinExplorerView and drags this item.

Namespace: DevExpress.XtraGrid.Views.WinExplorer

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

[DXCategory("Action")]
public event WinExplorerViewDragEventHandler ItemDrag

Event Data

The ItemDrag event's data class is DevExpress.XtraGrid.Views.WinExplorer.WinExplorerViewDragEventArgs.

Remarks

The ItemDrag event fires for item dragging performed with any mouse button. Although the WinExplorerView does not support item dragging out-of-box, you can implement custom item dragging by calling the GridControl.DoDragDrop method (this method is inherited from the Control class) in your ItemDrag event handler. The GridControl.AllowDrop property must be set to true to enable drag-and-drop operations. During a drag-drop operation, call the WinExplorerView.GetDragItemInfo method to retrieve the current position of a dragged item.

To see an example, download the E764.zip attachment from the Reorder items in WinExplorerView by drag and drop Support Center ticket.

See Also