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
close icon

GDBG drag and drop - ready state

I have some complains from the user that it is hard to place the cursor on the GDBG row to enable the Drag and Drop option. The placement of the cursor must be exact and it is hard to control. Is there any way to control this functionality. Have the Drag and Drop cursor enabled within the whole selected row ( not only at the very top and bottom )? Any other ideas?

1 Reply

ST stanleyj Syncfusion Team February 17, 2006 11:21 AM UTC

Hi Kstoj, You can get the OLEDrag icon when hovering over the border of the selected range. One alternative way that can be thought is to reposition the mouse cursor, so as to position it in the border to see the Drag and Drop cursor enabled as soon as the selection is made. You can also clear the selection in the DragDrop handler so as to clear cursor position. You may also need to use escape key if the selected range is to be changed. private void gridDataBoundGrid1_CellMouseHover(object sender, Syncfusion.Windows.Forms.Grid.GridCellMouseEventArgs e) { if(this.gridDataBoundGrid1.Selections.Ranges.Count > 0) { Rectangle rect = this.gridDataBoundGrid1.RangeInfoToRectangle(this.gridDataBoundGrid1.Selections.Ranges.ActiveRange); Point pt = new Point(e.MouseEventArgs.X, rect.Y); Cursor.Position = this.gridDataBoundGrid1.PointToScreen(pt); } } Best regards, Stanley

Loader.
Live Chat Icon For mobile
Up arrow icon