S
Sam
Hi,
The following code :
For Each r As DataRow In dtFlow.Rows
Dim arow As DataRow = dtAllFlows.NewRow
arow = r
dtAllFlows.Rows.Add(arow)
Next
leads to the error 'This row already belongs to another table '
at the line dtAllFlows.Rows.Add(arow).
I guess I should just do dtAllFlows = dtFlow.copy, but I can't as the
code above is contained in a For loop and at each iteration, I add new
rows (dtFlow changes at each iteration).
How can I solve this problem ?
Regards
The following code :
For Each r As DataRow In dtFlow.Rows
Dim arow As DataRow = dtAllFlows.NewRow
arow = r
dtAllFlows.Rows.Add(arow)
Next
leads to the error 'This row already belongs to another table '
at the line dtAllFlows.Rows.Add(arow).
I guess I should just do dtAllFlows = dtFlow.copy, but I can't as the
code above is contained in a For loop and at each iteration, I add new
rows (dtFlow changes at each iteration).
How can I solve this problem ?
Regards