Someone pls tell how to do match/unmatch across two datatable comparing only one column and ignoring other columns for comparision?
Hi @Pratheep, welcome to the Community.
Please checkout the following resource:
Hope this helps,
Best Regards.
Read Range (Excel Application Scope) → Output: dt1
Read Range (Excel Application Scope) → Output: dt2
For Each Row (ForEachRow1) → DataTable: dt1
For Each Row (ForEachRow2) → DataTable: dt2
If row1(“ID”).ToString = row2(“ID”).ToString // Compare based on the “ID” column
Then
// Handle matched rows
Else
// Handle unmatched rows
End If
End ForEachRow2
End ForEachRow1