日期:2014-05-17  浏览次数:20709 次

TreeView怎么实现这个效果~

------解决方案--------------------
this.treeView1.Nodes.AddRange(new TreeNode[] { 
                new TreeNode("T1201",new TreeNode[]{
                    new TreeNode("111"),
                    new TreeNode("222"),
                    new TreeNode("333")
                }),
                new TreeNode("T1202",new TreeNode[]{
                    new TreeNode("444"),
                    new TreeNode("555"),
                    new TreeNode("666")
                }),
                new TreeNode("T1203",new TreeNode[]{
                    new TreeNode("777"),
                    new TreeNode("888"),
                    new TreeNode("999")
                })
            });
            this.treeView1.ExpandAll();

------解决方案--------------------
这不就是最普通的默认效果么。

相关资料更多>