Drag row from grid to control on another form

2 posts, 0 answers
  1. Dominik
    Dominik avatar
    62 posts
    Member since:
    Dec 2012

    Posted 13 May 2016 Link to this post


    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:


    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

  2. Dess
    Dess avatar
    2100 posts

    Posted 17 May 2016 Link to this post

    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.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top