D
Dmitry Karneyev
Hi!
I try to delete rows from the table in such way
foreach(DataRow row in MyDataSet.MyTable)
{
row.Delete();
}
and recive an error that collection is changed and enumeration is
impossible.
I guesss that foraech operator uses collection of undeleted rows and this
causes such behaviour.
Is there another approach to mark all rows in the table to deleted state?
Thanks
Dmitry
I try to delete rows from the table in such way
foreach(DataRow row in MyDataSet.MyTable)
{
row.Delete();
}
and recive an error that collection is changed and enumeration is
impossible.
I guesss that foraech operator uses collection of undeleted rows and this
causes such behaviour.
Is there another approach to mark all rows in the table to deleted state?
Thanks
Dmitry