i want to compare 2 datatables in which it first check for primary key , and then check for another changes in row, below code works without primary key how can i use primary key in bellow code ?
DataTable Final = dt1.AsEnumerable().Except(dt2.AsEnumerable(), DataRowComparer.Default).CopyToDataTable();

Bhavik BhavsarPosted Apr 28, 2021, 11:21 AM
Pops FalePosted Jun 21, 2016, 5:34 AM
checked all link , there is no any linked between both column by primary key , the code must have to do following things
Vinay SinghPosted Jun 21, 2016, 3:48 AM