Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1370
Cloning a node from Treeview databound
posted

Hi,

I'd like to copy a node from TreeView to another Treeview but I want to keep each Cells of the nodes databound from DataTable.

The Clone methode doesn't clone cells.

From a node with cells, the result is a node with only a single value ...

Code :

trvProjects.DataSource = dsBudgetMap;
trvProjects.DataMember = "BUDGET";

foreach (UltraTreeNode tnTas in tnPro.Nodes)
     trvTaskLate.Nodes.Add(tnTas.Clone()); 

Parents Reply Children