ASP。net treeview xml

 this.TreeView2.ShowLines = false; //显示连接子节点与父节点之间的线条
        TreeNodeBinding area = new TreeNodeBinding();
        area.DataMember = "Area";
        area.ValueField = "cAreaName";
        this.TreeView2.DataBindings.Add(area);

        TreeNodeBinding province = new TreeNodeBinding();
        province.DataMember = "Province";
        province.ValueField = "cAreaName";
        this.TreeView2.DataBindings.Add(province);


        TreeNodeBinding city = new TreeNodeBinding();
        city.DataMember = "City";
        city.ValueField = "cAreaName";
        this.TreeView2.DataBindings.Add(city);

  

posted @ 2016-10-24 15:53  尘梦  阅读(121)  评论(0编辑  收藏  举报