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

Drag&Drop: AllowedEffects

Thread ID:





72131 Mar 4,2008 01:19 PM UTC Mar 26,2008 09:00 PM UTC WinForms 1
Tags: GridControl
Asked On March 4, 2008 01:19 PM UTC

Hi everybody,

I need to Drag&Drop inside a grid (not inbetween different controls).

I've implemented the DragEnter, DragOver and DragDrop event handlers.

In general, that works. But I now should define at the start of the dragging, which operation (move, copy or both or none) should be allowed.

Setting e.Effect in DragEnter does not set the allowed effect, as I noticed. Where and how do I have to set the allowed effects?

Best regards

Administrator [Syncfusion]
Replied On March 26, 2008 09:00 PM UTC

Hi Andreas,

You can set the DragDropEffects in DragOver event like below code snippet

private void gridControl1_DragOver(object sender, System.Windows.Forms.DragEventArgs e)
e.Effect = DragDropEffects.Copy;
System.Diagnostics.Debug.WriteLine(string.Format("gridControl1_DragOver: AllowedEffect = {0}, Effect = {1}", e.AllowedEffect, e.Effect));

Please refer the attached sample and let me know this helps.

Best regards,


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

or the page will be automatically redirected to 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