You have to iterate trough your first tables and use the information from first table to modify the values from the second table, like in the next example:
DataTable firstTable = dataSet.Tables["FirstTableName"];
DataTable secondTable = dataSet.Tables["SecondTableName"];
foreach(DataRow row in firstTable.Rows)
{
ModifySecondTable(rowFromFirstTable);
}
...
void ModifySecondTable(DataRow rowFromFirstTable, DataTable secondTable)
{
int fk = row["ID"];
foreach(DataRow secondTableRow in secondTable.Rows)
{
int linkField = secondTableRow["linkField"];
if(linkField == fk)
{
}
}
}