I have these two datatables and I want to get the difference between them. Here is an example:
Table1
-------------------------
ID | Name
---------------
Try below, this is pretty basic. Merge two sets together, and get the difference. If the sets dont align up properly, then this will not work.
DataSet firstDsData = new DataSet();
DataSet secondDsData = new DataSet();
DataSet finalDsData = new DataSet();
DataSet DifferenceDataSet = new DataSet();
finalDsData.Merge(firstDsData);
finalDsData.AcceptChanges();
finalDsData.Merge(secondDsData);
DifferenceDataSet = finalDsData.GetChanges();