I have an app which has a datagrid in which you can add and delete items.
After an Item is added the dataset is updated and rebound to the grid.
If I try to delete the newly added item I get this Error:
Collection was modified; enumeration operation may not execute
This error occurs when I run a for each loop through the Datatable's row collection.
Is this not allowed. What can I do about it?
After an Item is added the dataset is updated and rebound to the grid.
If I try to delete the newly added item I get this Error:
Collection was modified; enumeration operation may not execute
This error occurs when I run a for each loop through the Datatable's row collection.
Is this not allowed. What can I do about it?