We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Drag + Drop

Thread ID:

Created:

Updated:

Platform:

Replies:

21348 Nov 8,2004 02:20 PM UTC Nov 9,2004 12:44 PM UTC WinForms 2
loading
Tags: Grouping
Dominic Morris
Asked On November 8, 2004 02:20 PM UTC

I''d like to be able to select arbitrary regions from the grid, and drag them into Excel. Unfortunately, once a selected range is defined, then clicking into it (Mouse DOWN), to start the drag operation destroys the selected range. I''d like to selected range to be set to the clicked cell on mouse UP events, not mouse DOWN events. How can I do drag+drop with this grid? Thanks, d.

Administrator [Syncfusion]
Replied On November 8, 2004 10:43 PM UTC

To catch the mousedown in this situation, you need to use your own mousecontroller. In the controller, have the OnHitTest return nonzero when you want control of the mouse actions. Here is a little sample that allows you to drag text from a GroupingGrid to, say, Excel. GGC_DnD_2151.zip

Dominic Morris
Replied On November 9, 2004 12:44 PM UTC

Very good! Thank you, that works well, although I took out the Cursor related code; it seemed to be bugged. >To catch the mousedown in this situation, you need to use your own mousecontroller. In the controller, have the OnHitTest return nonzero when you want control of the mouse actions. > >Here is a little sample that allows you to drag text from a GroupingGrid to, say, Excel. > >GGC_DnD_2151.zip > >

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;