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>();
转载于:https://www.cnblogs.com/wpf123/archive/2011/03/02/2052924.html