I have one DataSet
object which contains two DataTable
objects. Both DataTable
have the same structure but first of them is older then second. Second DataTable
contains part of the older DataTable
object rows and some new rows. I need to know which rows has been added to "newer" DataTable
comparing to the older.
I thought about method which takes two parameters (older and newer DataTable
) and returns DataRow[]
collection containing added rows to newer DataTable
:
private DataRow[] GetNewDataRows(DataTable oldDT, DataTable newDT)
{
// code
}
I don't know how to achieve that. Can anyone help ? Regards