Drag row from grid to control on another form

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

    Posted 13 May Link to this post

    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

  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 17 May 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.

    Regards,
    Dess
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top