Hello all.. i wanted to merge two datatables.. infact its only one which is original version and modified version.. merging both to find the differences and store them in another datatable. but for some reason merge is not working.. here is the code which i have written.
public static DataTable CompareDatatables(DataTable dtoriginal, DataTable dtModified)
{
DataTable dt3 = new DataTable();
DataTable dt4 = new DataTable();
dt3 = dtModified.Copy();
dt3.Merge(dtoriginal);
dt4 = dt3.GetChanges();
return dt4;
}
dt4 is returning null and the values are not merging :( .. please help