Skip to main content

Drag-and-Drop

  • 2 minutes to read

The GridControl supports native drag-and-drop that allows your end users to:

DragDrop

Note

Enabling Drag-and-Drop

Set the DataViewBase.AllowDragDrop property to true to activate the drag-and-drop functionality. The code sample below demonstrates how to enable drag-and-drop in the TableView:

<dxg:GridControl>
   <!---->        
   <dxg:GridControl.View>
      <dxg:TableView AllowDragDrop="True" />
   </dxg:GridControl.View>
</dxg:GridControl>

The GridControl with the drag-and-drop functionality enabled requires 2 mouse clicks to activate a cell editor and 3 clicks to open a drop-down editor. You can set the DataViewBase.EditorShowMode property to MouseDownFocused or MouseUp to reduce the number of clicks.

Concepts

Examples

See Also