public Cursor GetDragCursor(int rowHandle, Point e) { GridViewInfo info = _view.GetViewInfo() as GridViewInfo; GridRowInfo rowInfo = info.GetGridRowInfo(rowHandle); Bitmap result = GetRowDragBitmap(rowHandle); Point offset = new Point(rowInfo.Bounds.X, e.Y - rowInfo.Bounds.Y); return(CursorCreator.CreateCursor(result, offset)); }
private void TreeList_DragEnter(object sender, DragEventArgs e) { useCustomCursor = false; var provider = e.Data.GetData(typeof(IDragNodesProvider)) as IDragNodesProvider; if (provider == null) { return; } _dragRowCursor = CursorCreator.CreateCursor(new Bitmap(provider.GetPreviewImage()), new Point()); }