Click here to Skip to main content
15,896,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two set of datarows and i have to join the datarows and add it to datatable using linq and lambda expression.

My Datarow will be the follwing

C#
var datarow = from DataRow x in table.Rows where x.Field<int>("ID")==195 select x;
var row2 = from DataRow x in table.Rows where x.Field<int>("ID") != 195 select x;



I did it without using linq or lambda expression but i wish to know is it is possible to do it with linq. I mean joining the set of datarow and add it to datatable.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900