Tree To Tree Dnd

I want to drag and drop from a tree to grid but want to disable drag and drop in the same Tree because of creating Duplicates??Is It Possible???

Hello
You need to set the next check:

if(targetObject==sourceObject) return false