This is a migrated thread and some comments may be shown as answers.

Drag row from grid to control on another form

1 Answer 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
konrad
Top achievements
Rank 1
konrad asked on 13 May 2016, 10:53 AM

Hi,

As a topic, I would like to do drag & drop a row from the grid to the RadListView control placed on a different form.

I am using CustomRowGridBehavior+RadDragDropService on grid form side like here:

http://docs.telerik.com/devtools/winforms/listview/drag-and-drop/drag-and-drop-using-raddragdropservice

The problem is, that this solution does not trigger DragEnter event on RadListView.

There is a small project sample in DragFromGridToAnotherForm.gif. 

Just change extensions to .zip

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 17 May 2016, 06:17 AM
Hello Dominik,

Thank you for writing.

When you drag a row from RadGridView to RadListView, note that the whole drag and drop operation is performed by the RadGridViewDragDropService. Hence, you should handle the PreviewDragOver event to detect that you are dragging over RadListView. If you need to handle the RadListView.DragEnter event, it is necessary to use the OLE drag-drop. A sample approach is demonstrated in the second section of the following help article: http://docs.telerik.com/devtools/winforms/listview/drag-and-drop/combining-raddragdropservice-and-ole-drag-and-drop

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
konrad
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or