this.treeView1.Nodes这个是包含树的多有结点吗?

解决方案 »

  1.   

    private void BuildSelectNode(TreeNode node)//递归遍历一颗树里
            {
                if (node. Nodes.Count== 0)
                {
                    return;
                }
                else
                {
                    for (int j = 0; j < node.Nodes.Count; j++)
                    {
                        BuildSelectNodeDataRow(node.Nodes[j]);//递归
                    }
                }
            }
      

  2.   

    中间获取checkbox选项是否等于true,作相应处理,自己填写吧
      

  3.   

    private void BuildSelectNode(TreeNode node)//递归遍历一颗树里
            {
                if (node. Nodes.Count== 0)
                {
                    return;
                }
                else
                {
                    for (int j = 0; j < node.Nodes.Count; j++)
                    {
                        BuildSelectNode(node.Nodes[j]);//递归
                    }
                }
            }