Skip to main content

RepositoryItem.DragDrop Event

Fires when an object is dropped onto the editor.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public event DragEventHandler DragDrop

Event Data

The DragDrop event's data class is DragEventArgs. The following properties provide information specific to this event:

Property Description
AllowedEffect Gets which drag-and-drop operations are allowed by the originator (or source) of the drag event.
Data Gets the IDataObject that contains the data associated with this event.
Effect Gets or sets the target drop effect in a drag-and-drop operation.
KeyState Gets the current state of the SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons.
X Gets the x-coordinate of the mouse pointer, in screen coordinates.
Y Gets the y-coordinate of the mouse pointer, in screen coordinates.


If dropping is allowed by the RepositoryItem.DragEnter and RepositoryItem.DragOver event handlers, it can be handled using the DragDrop event. This implies inserting the dragged data into the target control. Use the event’s Data parameter to determine which data should be used to modify the editor’s value.

See Also