How to Compare two datatable, and have a single notification

Hi ,

This can be tried using the Linq
DTSame = DT1.AsEnumerable().Except(DT2.AsEnumerable(),System.Data.DataRowComparer.Default).CopyToDataTable

If DTSame.Rows.count>0 then “KO”
Else “OK”

Refer this link

2 Likes