开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜