I wanted to know how to write this in linq below. Basically for every row by id in the testTable find the related fk Id in the Log table and insert the row in the LogTable , then set then assigned the Log table to grid.DataSource
foreach (databaseDataSet.testRow testRow in testTable.Rows)
{
foreach (databaseDataSet.logRow logRow in LogTable.Rows)
{
Import record into LogTable
}
}
grid.DataSource = LogTable;