Hi,
I just realized that if I call dataset.AcceptChanges after I added the rows
to my manualy created dataset it works perfect.
/Bjorn
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
]]
> Sent: Tuesday, May 14, 2002 17:03
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Delete in for each iteration
>
>
> Hi,
>
> for each datarow in aDataset
> if condition then
>datarow.delete
> end if
> next
>
> The code above works perfect if the
Hi,
for each datarow in aDataset
if condition then
datarow.delete
end if
next
The code above works perfect if the dataset was created from the database.
But if I manually create a dataset and add rows to the dataset and run the
code above I get an error: Collection was modified; enumeration