Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Drag-and-Drop

  • 2 minutes to read

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

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