Skip to content

DevExpress-Examples/winforms-grid-drag-and-drop-selected-rows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms Data Grid - Drag-and-drop multiple grid rows

This example shows how to use the Drag And Drop Behavior (available in v17.2+) to allow a user to move selected rows from the GridControl to the ListBoxControl using drag-and-drop. You should also handle the following drag-drop-related events:

DragDropBehavior listBoxBehavior = behaviorManager.GetBehavior<DragDropBehavior>(this.listBoxControl);
listBoxBehavior.DragOver += ListBoxBehavior_DragOver;
listBoxBehavior.DragDrop += ListBoxBehavior_DragDrop; 

Note

In older versions, use the standard Drag events. Read the following topic for more information: Drag-and-drop of multiple selected grid rows.

Files to Review

Documentation