How to print both table data in LINQ query


i have LINQ query

DataTable2.AsEnumerable().Where(function(row) Not DataTable1.AsEnumerable().Select(function® r.Field(Of String)(“Pos”)).Any(function(x) x = row.Field(Of String)(“Pos”))).CopyToDataTable()

Here it is printing only dt2 data. in final output.
but i want to print dt1 and dt2 all columns data. or if i want only particaticular column data in dt1 and dt2
what modifications need to do.


Hi @anilkumar.vegi,
Please check out this video as well as you should find some examples on forum using upper search bar :slight_smile:

1 Like