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();


Vinay SinghRank #604 · 4K reputationPosted Jun 20, 2016, 11:48 PM EDT
Pops FaleRank #2,329 · 607 reputationPosted Jun 21, 2016, 1:34 AM EDT
checked all link , there is no any linked between both column by primary key , the code must have to do following things
Bhavik Bhavsar107 reputationPosted Apr 28, 2021, 7:21 AM EDT