wpf-11346-controls-and-libraries-data-grid-drag-and-drop.md
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.
Note
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.
Drag-and-Drop OptionsLists drag-and-drop options.Process Drag-and-Drop OperationsDescribes how to customize drag-and-drop functionality in the GridControl.Drag-and-Drop HintContains information on drag-and-drop hint customization.Drop MarkerDescribes how to customize the drop marker.End-User Drag-and-DropContains information on end-user drag-and-drop functionality in the GridControl.
See Also