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 operation may not execute. I use a typed dataset, SqlClient, Northwind and VB.net /Bjorn You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.