wpf-400431-controls-and-libraries-data-grid-drag-and-drop-process-drag-and-drop-operations.md
This topic demonstrates how to customize the GridControl‘s drag-and-drop functionality to support a wide variety of drag-and-drop scenarios.
Handle the DataViewBase.StartRecordDrag event.
Define records that cannot be dragged.
Set the StartRecordDragEventArgs.AllowDrag property to false to prevent records from being dragged.
Set the Handled property to true.
Handle the DataViewBase.DragRecordOver event.
Define records that reject the data.
Set the Effects property to DragDropEffects.None to make the drop target reject the data.
Set the Handled property to true.
Handle the DataViewBase.DropRecord event.
Use the DataObject.GetData method to extract data.
Modify extracted data.
Handle the DataViewBase.CompleteRecordDragDrop event.
Set the Handled property to true.
The GridControl allows dragging records and dropping them in external controls that support drag-and-drop functionality. You can perform drag-and-drop operations within a single application, or between different applications. Refer to the following topics for more information:
See Also