>Hi Cetin
>
>>Here I'm setting oDataObject to contain the key instead of default text. Actually when grid gets the drop, it's getting the key and asking fullpath of nodeText from treeview using that key (lcKey = ...GetData(1), ...TV.Nodes(m.lcKey).Fullpath).
>
>Wow, so does this mean I could have sent the TV's object ref. like this:
>oDataObject.SetData(This, "VFP Source Object")
>
>I could then get the oTV.SelectedItem.Key in the dropped object?
I didn't say send object reference. I don't know if you could. Even if you could sending an object reference instead of a simple key string would impact perfromance I think. Just send the "key".
oDataObject.SetData(this.SelectedItem.KEY,1)
Target simply does:
lcNodeKey = oDataObject.GetData(1) && It is oTV.SelectedItem.Key
Cetin