Collection was modified; enumeration operation might not execute.
Here's the code:public void ClearDataStore(string DataViewName) { DataViewName = DataViewName.ToString().ToLower().Trim(); foreach (DataRow Row in _dsDataStore.Tables[0].Rows) { if (Row["DataViewname"].ToString().ToLower().Trim() == DataViewName) { Row.Delete(); } } _dsDataStore.Tables[0].AcceptChanges(); }What's the right way to remove rows from a DataSet????