摘要: public void create_tree(DataSet ds, int parentid) { DataSet newds = new DataSet(); newds= Bpc.GetList(" c_parentid=" + parentid.ToString()); foreach (DataRow dr in newds.Tables[0].Rows) { ds.Tables[0].Rows.Add(dr.ItemArray); create_tree(ds, int.Parse(dr["c_id"].ToString())); } } 阅读全文
posted @ 2013-09-29 16:40 甜菜波波 阅读(223) 评论(0) 推荐(0) 编辑