var query1 = from p in dt1.AsEnumerable()
                         from pp in dt2.AsEnumerable()
                         where p.Field<string>("sruser") == pp.Field<string>("stuser")
                         select p;
            DataTable dt3 = query1.CopyToDataTable<DataRow>();
posted on 2011-03-02 22:03  WPF之家  阅读(159)  评论(0编辑  收藏  举报