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. Image for the cookie policy date

Drag and drop

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...

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon