I have 2 data tables - dt1 and dt2
I need to check if column value of dt1 = another column value of dt2. If it is equal, i need to populate some value in one of the column of dt1.
Join will not be a good idea as I have n number of rows in dt1. I want to check if row value of col C of dt1 exist in any of the row value of col E in dt2
@Smreti_Gupta
concept is about Any and ItemArray Reconstruction
(From d1 In dt1.AsEnumerable
Let chk = dt2.AsEnumerable.Any(Function (x) x(1).toString.Trim.Equals(d1(2).toString.Trim))
Let chkMsg = If(chk, "valid", "invalid")
Let ra = d1.ItemArray.Take(3).Append(chkMsg).ToArray
Select r = dtResult.Rows.Add(ra)).CopyToDataTable