I want to if check DT1 column[FullName]contains DT2 column[Name] and if it contains I want to update DT1 Column[Number] with DT2 column[Number].
For eg : “Thomas Ball” from DT1 contains Name “Ball” from DT2 ,so I should get the Number column from DT2 and add it to DT1 Number Coulumn .
Can anyone please help me with writing Linq query for this .Thank you.
For Each r1 As datarow In dt1.AsEnumerable
For Each r2 As DataRow In dt2.AsEnumerable
If r1(0).ToString.trim.Contains(r2(0).ToString.trim) Then
r1(2)=r2(1).ToString.Trim
Else
End If
Next
Next