Is there any way to subtract two datatables in order to have rows of the first datatable that are not in the second one?
I have tried .Except() method like below but it does not work for me.
dt1.AsEnumerable().Except(dt2.AsEnumerable()).CopyToDataTable();
I think i have mistake in using this method but i could not find that?
I have used the following code to subtract two datatables from each other :
this code returns exactly what i want…