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 users to do the following:

Note

If the project is built against .NET 9, you can drag and drop records only within the same application. To drag and drop records between applications, install the BinaryFormatter compatibility package and set the DeserializationSettings.EnableDataObjectBinarySerialization property to true.

Refer to the following Breaking Change for additional information: Component functionality changes due to BinaryFormatter deprecation.

Drag and Drop

Note

#Enable Drag-and-Drop

Enable the DataViewBase.AllowDragDrop property to activate the drag-and-drop functionality as demonstrated in the following code example:

<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

Drag-and-Drop Options
Lists drag-and-drop options.
Process Drag-and-Drop Operations
Describes how to customize drag-and-drop functionality in the GridControl.
Drag-and-Drop Hint
Contains information on drag-and-drop hint customization.
Drop Marker
Describes how to customize the drop marker.
End-User Drag-and-Drop
Contains information on end-user drag-and-drop functionality in the GridControl.

#Examples

See Also