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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DragDrop event not firing?

Thread ID:

Created:

Updated:

Platform:

Replies:

67360 Aug 15,2007 02:04 PM UTC Aug 17,2007 03:59 PM UTC Windows Forms 2
loading
Tags: GridControl
S.
Asked On August 15, 2007 02:04 PM UTC

Hi,

I've dropped a new Syncfusion GridControl onto a windows form and set the following properties/events,
gridControl1.AllowDragSelectedCols = true;
gridControl1.DragDrop += new DragEventHandler(gridControl1_DragDrop);

However, the DragDrop event handler never fires when I drop a column header in a new position after clicking and dragging it.

Can anybody please explain why this is indeed the case.

Thanks,

S.

Rajagopal [Syncfusion]
Replied On August 17, 2007 01:59 AM UTC

Hi,

Thanks for your interest in Syncfusion Products.

When you try to move columns by selecting them and then mousing down on the column header and dragging them is controlled by the AllowDragSelectedCols property. This functionality does not depend on OLE drag and drop support. The DragDrop event will get triggered when you use the OLE dragdrop support by setting the grid.AllowDrop property to true. The grid.ColsMoved event will get triggered when you drag the selected columns by setting the AllowDragSelectedCols property to true.

Please refer the samples on DragDropSupport in browser samples for more information
\\Syncfusion\EssentialStudio\5.1.0.51\Windows\Grid.Windows\Samples\2.0\DragDropSupport\OleDragDrop

Let me know if you have any other questions.

Have a nice time.
Regards,
Rajagopal

S.
Replied On August 17, 2007 03:59 PM UTC

That's a great explanation.

Thanks for the reply.




CONFIRMATION

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.

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

;