dataset: Enumeration Operation May Not Execute

jch001

Member
Joined
Apr 7, 2006
Messages
18
Location
Near London UK
Hi

I am getting a strange error.

"Collection was modified; enumeration operation may not execute."

I am loading a dataset with data from a sql server stored procedure. Using this code:


_db.LoadDataSet("SR_USER_MNE_ALL", dsFlux, New String() {"User"})

It uses Microsoft
 
After further investegation, I have found the following is happening.

There is a list box which is bound to the User datatable. When the above code runs, the SelectedIndexChanged event is firing on this list box which is infact producing the error.

is there any way to prevent this?
 
Back
Top