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

Ole Drag and drop target

Im dragging a range of cells using OLE DnD. When dragging an outline is drawn on target cells. How do I get the cells inside this outline (target cells).

1 Reply

AA Arulraj A Syncfusion Team June 10, 2010 02:10 PM UTC

Hi Marcelo,

Thanks for your interest in Syncfusion Products.

The rectangle over the target cell while dragging is drawn internally. Hence, its respective cell cannot be accessed. However, if need to get the dropped range immediately, it can be achieved by handling the following code in DragDrop event.

this.gridControl1.DragDrop += new DragEventHandler(gridControl1_DragDrop);

GridRangeInfoList rl;
void gridControl1_DragDrop(object sender, DragEventArgs e)
{
this.gridControl1.Selections.GetSelectedRanges(out rl, true);
richTextBox1.Text = rl.Info;
}

Here is a sample for your reference.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GC_OLEDragAndDrop-387723183.zip

Regards,
Arulraj.A

Loader.
Live Chat Icon For mobile
Up arrow icon