Skip to main content

Drag and drop only copy.

Comments

1 comment

  • Dapfor Team

    Hello,
    Look at the code:

     

    grid2.DragOverContent += delegate(object sender, DragContentEventArgs e)
    {
    if(e.TargetGrid == e.Source)
    {
    if (e.Effect == DragDropEffects.Copy)
    {
    e.Effect = DragDropEffects.Move;
    }
    }
    else if (e.Effect == DragDropEffects.Move)
    {
    e.Effect = DragDropEffects.Copy;
    }
    };

     

    Regards,
    Dapfor

    0

Please sign in to leave a comment.

Powered by Zendesk