zoukankan      html  css  js  c++  java
  • ajty

                //row = (DataRow)node.Nodes[0] .Tag
                //;
                //row["NodeID"] =ds.Tables[0].Columns["NodeID"].ColumnName ;
                //ds= (DataSet)((DataRow)node.Nodes[0].Tag)["NodeID"];
                //(DataRow)row["NodeID"];
                //DataColumn[] pk =  (DataColumn)row["ParentNodeID"][0];
                //ForeignKeyConstraint fkcdelete;
    
                //(DataRow)node.Nodes[0] = ds.Tables["NodeID"].ToString();
                //  ds.Tables[0].Columns["NodeID"];
                //  (DataRow)node.Nodes[0].Tag;//当前树节点 对象的集合。
                //node.Nodes.CopyTo((Array)ds, 0);
                //nodeID = dataRow["NodeID"].ToString();
    
    
    
    
                //            WITH COMMENT_CTE(CommentId, ParentId, CommentBody, tLevel)
                //AS
                //(
                //    --基本语句
                //    SELECT CommentId, ParentId, CommentBody, 0 AS tLevel FROM Comments
                //    WHERE ParentId = @emp_id-- 可以是传入的值
                //    UNION ALL--递归语句
    
    
                //    SELECT c.CommentId, c.ParentId, c.CommentBody, ce.tLevel + 1 FROM Comments AS c
                //    INNER JOIN COMMENT_CTE AS ce--递归查询
    
    
                //    ON c.ParentId = ce.CommentId
                //    -- OPTION(MAXRECURSION 2)
                //)
                //SELECT * FROM COMMENT_CTE
    
                //           int i = node.GetNodeCount(false); // 子节点 的数目
                //           DataSet ds = null;
                //           DataRow row = null;
                //           TreeNode[] Gb = null;
                //           try
                //           {
                //               if (i > 0)
                //               {  
                ////                   TreeNode firstNode = node.FirstNode;
                ////                   TreeNode firstNodes = firstNode.NextNode;
    
    
                ////                   Nodes
                ////                       TreeNode Find[] 
                ////   TreeNode n = new TreeNode();
                ////                   dataGridView1.DataSource = (DataRow)node.Nodes[0].Tag;//当前树节点 对象的集合。  firstNode.Level(0);
                ////                   //node.Nodes.CopyTo((Array)ds, 0);
                ////                   TreeNodeCollection node4 = (TreeNodeCollection)node.Nodes[0].Tag;
                ////                   //TreeNode n = new TreeNode();
                ////                   n.Nodes.Add(node.Nodes[i]);
                ////dataGridView1.DataSource = (DataRow)node.Nodes[0].Tag;//当前树节点 对象的集合。
                //               }
                //               return GetDGV(node, b, dataGridView1);
                //           }
                //           catch (Exception) { throw; }
  • 相关阅读:
    Baskets of Gold Coins_暴力
    Inversion_树状数组***
    萌新的旅行-
    KI的斐波那契_DFS
    牛吃草_二分法
    See you~_树状数组
    Bellovin_树状数组
    Bubble Sort_树状数组
    [Python] numpy.ndarray.shape
    [Python] numpy.sum
  • 原文地址:https://www.cnblogs.com/endv/p/5351313.html
Copyright © 2011-2022 走看看