Hi
I hope the below code will give you some hints.
DataTable result = (from t1 in dt1.AsEnumerable()
join t2 in dt2.AsEnumerable() on t1.Field<int>("id") equals t2.Field<int>("id")
where t1.Field<int>("id1") != t2.Field<int>("id2")
select t1).CopyToDataTable();