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

How to implement the drag-and-drop capability to re-order rows and drop them onto an external control

$
0
0

We have implemented GridDragDropManager behavior in the grid extentions library. This attached behavior allows you to include the drag and drop support in your application more easily than the old approach.


This description is actual only for versions earlier than 12.1.:

The following example demonstrates how to implement the drag-and-drop capability to allow end-users to do the following:

1. re-order grid rows;

2. drag any grid row from a grid and drop it onto an external control.


To accomplish this task, it is necessary to set the GridView.AllowDrop property to True and handle its PreviewMouseDown, PreviewMouseMove, DragOver, and Drop events as shown in this example.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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