Hi Ariel,
Thank you for your interest in Syncfusion Products.
If your intention to deattach a customcontrol from a node and free up its user object without disposing it, you can use GC.Collect() method after deattach the customcontrol using myNode.customcontrol=null. Please refer to the code snippets that illustrates this.
[C#]
for (int i = 0; i < treeViewAdv1.Nodes.Count; i++)
{
this.treeViewAdv1.Nodes[i].CustomControl = null;
GC.Collect();
}
Please refer to the below simple sample and let me know if helps you.
http://websamples.syncfusion.com/samples/Tools.Windows/I50312/Tools_WF_treeview_customControl.zipIf I have misunderstood your requirement, could you please modify the above sample and send us, so that I could work out in depth and provide you a better solution at the earliest?
Please let me know if any concerns.
Regards,
Hema