I have a DataTable which has some rows and I am using the select to filter the rows to get a collection of DataRows which I then loop through using foreach and add it to ano
yourTable.ImportRow(dataRow);
It's because the row you're copying doesn't have the same TableName:
TableName
For example, try:
Table1.TableName = "Table1"; Table2.TableName = "Table2";