hi buddy! I want to create mul开发者_开发问答tiple treeviews in single treeview as it is shown in above figure. i can create only one treeview but cannot create another one with no links.
can anyone wake me up from this nightmare???
treeView1.BeginUpdate();
treeView1.ShowRootLines = false;
treeView1.ShowLines = false;
treeView1.Nodes.Add("Parent");
treeView1.Nodes[0].Nodes.Add("Child 1");
treeView1.Nodes[0].Nodes.Add("Child 2");
treeView1.Nodes[0].Nodes[1].Nodes.Add("Grandchild");
treeView1.Nodes[0].Nodes[1].Nodes[0].Nodes.Add("Great Grandchild");
treeView1.EndUpdate();
just copied and edited the example on MSDN
精彩评论