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 阅读(469) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 

常用链接

留言簿(5)

随笔分类

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜