i have two datatables called dt1(Loan buyers records) and dt2(Loan closed list). by comparing the two datatable, i want to find (loan not closed list) means record which is not present in the dt2 by comparing the dt 1
UnnMatched_Data = dt1.AsEnumerable().Where(function(row) Not dt2.AsEnumerable().Select(function(r) Cint(r(“ID”))).Any(function(x) x = Cint(row(“ID”)))).CopyToDataTable()
var of type DataTable Output = DT1.AsEnumerable.Where(Function(x) Not DT2.AsEnumerable.Where(Function(y) x(1).ToString.Equals(y(1).ToString)).Any).CopyToDataTable