dynamic tree with three child
how can i create dynamic tree in asp.net c# script with three child?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Krishna GaradPosted Feb 4, 2011, 6:31 AM
TreeNode mainroot = new TreeNode();//Parrent
mainroot.Text="Parent";
TreeView1.Nodes.Add(mainroot);
TreeNodeCollection nodes = TreView1.Nodes;
TreeNode child1 = new TreeNode();
root2.Text = "ChildOne";
mainroot.ChildNodes.Add(child1);
and so on....