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.

How to restrict the moving of data while OLE drag and drop instead of copying from Grid to Excel?

Description

By default, the GridControl supports drag and drop of the data within the Grid or other Grids by copying the data or moving the data. But when drag and drop is performed from Grid to excel, the data is moved instead of copying.

Solution

This kind of scenario can be resolved by canceling the data movement in QueryDragDropMoveClearCells event.

 C#

 

VB

 

Sample Link

http://www.syncfusion.com/downloads/support/directtrac/general/OLE_Drag_and_Drop_From_Grid_To_Excel1946928835.zip

Article ID: Published Date: Last Revised Date: Platform: Control:
3541 01/28/2015 01/30/2015 Windows Forms GridControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.