The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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...
ADAdministrator 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