Typed dataset insert error

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hello,

I'm getting the following error:

"This row already belongs to another table. "

For this code:

while(myEnumerator.MoveNext())
{
myDS.myTable.Rows.Add((myDS.myTableRow) myEnumerator.Value);
}

This is a typed dataset, for which there is only one table, and the row
count is zero when I attempt to insert the row. So there can be no duplicate
table, since there's only one, and no duplicate record since there are no
rows.

Any idea why would I get the error?

Thanks. :)
 
There's only one table. There is no table #2, which is why I'm confused by
this error. ;)

If there's only one table in my dataset, what could this error mean?
 
Back
Top