Back to Devexpress

Drag-and-Drop Between GridControl and ListBoxEdit

wpf-119301-controls-and-libraries-data-grid-drag-and-drop-process-drag-and-drop-drag-and-drop-between-gridcontrol-and-listboxedit.md

latest1.9 KB
Original Source

Drag-and-Drop Between GridControl and ListBoxEdit

  • Jun 02, 2022
  • 2 minutes to read

The GridControl allows dragging records and dropping them in external controls. This topic demonstrates how to implement drag-and-drop between the GridControl and the ListBoxEdit.

The following image shows dragging records to and from the ListBoxEdit :

View Example: How to implement drag-and-drop between the GridControl and the ListBoxEdit

Follow the steps below to implement drag-and-drop between the GridControl and the ListBoxEdit:

  1. Add the GridControl and the ListBoxEdit to your project’s window:

  2. Activate drag-and-drop operations in the added controls:

  3. Now you can drag records but not drop them in another control. Do the following steps to allow dropping:

  4. The controls in the demonstrated example have the same data source type. If data source types are different:

See Also

ListBoxDragDropBehavior Members

Drag-and-Drop Options

Drag-and-Drop Between GridControls

Drag-and-Drop Between GridControl and Other Controls

Drag-and-Drop Between Applications