Drag and drop only copy.
Hello.
1. I want to get drag and drop for only copying. I don't want to delete from first gird1.
2. I would like to get in gird1 itself row reordering is only DragdropEffects.Move. Now in grid1 it is copy and i got two rows. I would like to drag drop in grid1 itself and grid1 to another grid1. In grid1 itself, it is I would like to have dragdropeffects.move. form grid1 to another grid1, I would like to have dragdroeffects.copy.
Regards,
0
-
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,
Dapfor0
Please sign in to leave a comment.
Comments
1 comment