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

Drag from a RadGridView and drop onto a WinForms DataGridView

4 Answers 102 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 19 Mar 2011, 12:07 AM
Can I use RadDragDropService to do this? Because of constraint in the project I'm working on, I have a mix of a RadGridView and a WinForms DataGridView, and need to support dragging items from the RadGridView and drop them onto the DataGridView.

Thank you in advance for any suggestions.

Andy

4 Answers, 1 is accepted

Sort by
0
Andy
Top achievements
Rank 1
answered on 21 Mar 2011, 07:02 PM
I found this thread, http://www.telerik.com/community/forums/winforms/gridview/drag-and-drop.aspx, which uses DoDragDrop, but works for me.

Andy
0
Svett
Telerik team
answered on 23 Mar 2011, 03:27 PM
Hello Andy,

Alternatively, you can use RadGridViewDragDropService to accomplish that. You can understand how you can accomplish it by reading this code library. In addition, you can refer to the Drag and Drop example in the supplied Examples application.

Kind regards,
Svett
the Telerik team
0
Andy
Top achievements
Rank 1
answered on 15 Apr 2011, 12:17 AM
As the subject says, I was looking for a way to drag from a RadGridView to a native .NET DataGridView, not another RadGridView.

Andy
0
Svett
Telerik team
answered on 20 Apr 2011, 09:14 AM
Hi Andy,

In this case you can use Microsoft OLE drag and drop API to achieve that. You should read more about that in this MSDN article.

All the best,
Svett
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Andy
Top achievements
Rank 1
Answers by
Andy
Top achievements
Rank 1
Svett
Telerik team
Share this question
or