Here is a trick I found while trying to delete rows from a DataSet. I first tried the following code, but it throws an exception because the enumerator has changed.