DataSet ds = new DataSet();
                      ds.ReadXml(Application.StartupPath.ToString() + "file://SystemConfig.xml/");

                      DataTable dtt = new DataTable();
                      dtt=ds.Tables[0].Clone();
                      DataRow[] drs = ds.Tables[0].Select("Level='網絡'");
                     
                      foreach(DataRow dr in drs)
                      {
                          dtt.ImportRow(dr);
                      }
                      this.dataGrid1.DataSource =dtt;


          文章來源:http://www.cnblogs.com/wangdetian168/archive/2008/06/25/1230000.html
          posted on 2010-09-28 11:00 sanmao 閱讀(480) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 苍山县| 高邮市| 凤台县| 石阡县| 上饶市| 遂川县| 墨竹工卡县| 马公市| 开原市| 获嘉县| 青海省| 深水埗区| 新民市| 昌乐县| 分宜县| 赣榆县| 亳州市| 北票市| 房产| 禄丰县| 什邡市| 山东省| 冀州市| 措美县| 鹤壁市| 墨玉县| 封丘县| 蒙城县| 万荣县| 博白县| 五原县| 龙州县| 瑞安市| 理塘县| 乌兰浩特市| 汕头市| 渭源县| 宁夏| 盖州市| 济南市| 肇庆市|