Cor
I am using a lot Parent/Child datarelations in my app, but this could not
be used in this specific case.
I will use my loop addding row to a datatable instead.
Thx anyway
Jens
(you still didn't explained it clear)
I assume you have TWO datasets with ONE table each and that those tables are
identical.
This will work equally well if you have ONE dataset with TWO tables that are
identical but name.
you want to join them.
You should use the Merge() method, read on in MSDN about it, you can
configure it pretty well, like skipping keys, preserving changes etc...
The Merge() method works equally well on table and dataset level
// setup
DataSet ds1 = new DataSet();
DataSet ds2 = new DataSet();
DataTable tb1 = new DataTable("Table");
DataTable tb2;
DataColumn col = new DataColumn("Column", typeof(int));
tb1.Columns.Add(col);
ds1.Tables.Add(tb1);
tb2 = tb1.Copy();
// (notice that the copy above is just to copy the structure, and later on
the tables are filled with different data)
ds2.Tables.Add(tb2);
// data
tb1.Rows.Add(10);
tb2.Rows.Add(11);
// join tables
tb1.Merge(tb2);
CUIN Kaczy