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