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?
ADAdministrator Syncfusion Team December 3, 2004 06:16 AM
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.