المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Compare 2 Datatables



C# Programming
10-10-2011, 11:40 PM
How to compare two dataTables in C#.
I have this code but it returns NULL.

DataTable dtReturn = new DataTable(); dtTarget.Merge(dtSource); BindingContext[dtTarget].EndCurrentEdit(); dtReturn = new DataTable(); dtReturn = dtTarget.GetChanges(DataRowState.Added);