Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to add DragAndDrop capability to the detail grid

$
0
0

This example demonstrates how to add the DragAndDrop capability to the detail grid.

Our detail grid with DataControlDetailDescriptor doesn't support drag and drop. To provide this capability in this sample, we create a GridDragDropManager class descendant and override the CalcDraggingRows method to obtain a selected row. Then, we subscribe to the GridDragDropManager's DragOver and Drop events. When Drop is raised, we calculate to which position we must insert a selected row. 

Question Comments

Added By: nikoloo4 at: 9/29/2015 4:35:05 AM    

The example doesn't build.
Problems:
1. BanDrop method is not implemented.
2. There is no GridControl variable in the class.

Could you please take a look at it?


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>