/// <summary> /// 绑定菜单树树 数据源 /// </summary> private void MenuDataSource() { DataTable dt = new DataTable(); //获取部门数据源 BLL.BASE_MENU bll = new BLL.BASE_MENU(); dt = bll.GetList("1=1"); TreeNode rootNode = new TreeNode(); rootNode.Text = "菜单树"; rootNode.Value = "0"; rootNode.Expanded = true; InitTreeView(rootNode, dt); this.trvControl.Nodes.Add(rootNode); }