N
Neil
Hi,
I have 2 datatables with the same schema. One table has
data in it and one is empty, I want to add all the rows
from table1 to table2 where the column iVolume is
positive. My code is below, when i execute this it tells
me that the row is already assigned to a table, how do i
get around this ir is there a better solution to my
problem?
Thanks
N
code...
DataTable dataTable = DS.Tables[gainTableName];
DataRow[] gainRows = dataTable.Select("iVolume > 0");
foreach ( DataRow gainRow in gainRows )
{
inputGainTable.Rows.Add(gainRow);
}
I have 2 datatables with the same schema. One table has
data in it and one is empty, I want to add all the rows
from table1 to table2 where the column iVolume is
positive. My code is below, when i execute this it tells
me that the row is already assigned to a table, how do i
get around this ir is there a better solution to my
problem?
Thanks
N
code...
DataTable dataTable = DS.Tables[gainTableName];
DataRow[] gainRows = dataTable.Select("iVolume > 0");
foreach ( DataRow gainRow in gainRows )
{
inputGainTable.Rows.Add(gainRow);
}