A newer version of this page is available. Switch to the current version.

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.v19.2.dll


public event WinExplorerViewDragEventHandler ItemDrag

Event Data

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


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