开发者

How to create multiple tree view in single treeview in winforms?

开发者 https://www.devze.com 2023-03-10 23:39 出处:网络
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.

How to create multiple tree view in single treeview in winforms?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消