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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Ole Drag and drop target

Thread ID:





94777 Jun 1,2010 04:19 PM UTC Jun 10,2010 02:10 PM UTC WinForms 1
Tags: GridControl
Marcelo de Aguiar
Asked On June 1, 2010 04:19 PM UTC

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).

Arulraj A [Syncfusion]
Replied On 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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon