DragDrop event not firing?

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.

2 Replies

RA Rajagopal Syncfusion Team 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. S. August 17, 2007 03:59 PM UTC

That's a great explanation.

Thanks for the reply.




Loader.
Up arrow icon