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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Drag and drop

Thread ID:

Created:

Updated:

Platform:

Replies:

22115 Dec 3,2004 08:22 AM UTC Dec 3,2004 11:16 AM UTC Windows Forms 1
loading
Tags: GridControl
Mike Woolley
Asked On December 3, 2004 08:22 AM UTC

Hi, I''m using a virtual grid and would like to allow the user to drag a row onto a tree object. It all seems fairly straightforward, except that actually capturing the row for drag seems to be really difficult (i.e. getting the ''arrow - box'' cursor). Is there any way to set things up so that whenever the mouse hovers over the row header, the grid goes into dragging mode rather than displaying the ''select row'' cursor? Many thanks...

Administrator [Syncfusion]
Replied On December 3, 2004 11:16 AM UTC

The size of the selction edge is a static property that you can set. It defaults to 4. GridOleDataSourceMouseController.HitTestSelectionEdge = 8; If this does not serve your needs, you can catch the initial mousedown on an unselected header and start the drag yourself without requiring your user to first select the row. Here is a forum thread for doing something like this with moving columns, but similar techniques should work for calling DoDragDrop to initiate a D&D. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=9676

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

;