Hi everyone,
I need help on below scenario
I have 2 datatables , in 1 datatable we are having appox 64 columns (it may differ as well) ,
added 1 new column called " status"
Now i have to use vlookup using linq query between 2 datatables based on 1 column and i have to update the status column value from dt2 to dt1.
Dim query = From row1 In dt1.AsEnumerable()
Join row2 In dt2.AsEnumerable()
On row1("CommonColumn").ToString() Equals row2("CommonColumn").ToString()
Select row1, row2
For Each pair In query
pair.row1("status") = pair.row2("status").ToString()
Next
Sure @mkankatala , please find sample excel consists of 2 sheets considered as 2 data tables, Sheet1 is the base and expected output highlighted in sheet1.