G
Guest
Hi Guys,
I have to warn that I am a .Net novice and in fact don't use ADO.NET in the
"traditional" way but via access to a Progress (www.progress.com) AppServer
via proxies that they allow you to build.
I have been playing with creating a program where I get data into a dataset
via this method. I then update it in a datagrid. Next I get the changes and
send them back to the server to update and lastly I get any updates to that
dataset (or errors back) and try to handle them (normally just merge to
orginial dataset).
The problem that I am facing is how to handle a case where I have errors and
successfully deleted rows in the one returned dataset. If I merge the results
and then run AcceptChanges on the dataset, it shows the error but doesn't
leave it as needing work. I found that working through the rows and accepting
changes on rows with out errors worked until I hit successfully deleted rows.
When I accepted changes on these, it changed the dataset and stopped me
looping through the dataset (get an exception that the collection had changed
or something).
I walked through the rows sort of like this:
dim row as datarow
for each row in dataset.datatable.rows
Can anyone suggest a better way of doing this?
TIA
Molly
I have to warn that I am a .Net novice and in fact don't use ADO.NET in the
"traditional" way but via access to a Progress (www.progress.com) AppServer
via proxies that they allow you to build.
I have been playing with creating a program where I get data into a dataset
via this method. I then update it in a datagrid. Next I get the changes and
send them back to the server to update and lastly I get any updates to that
dataset (or errors back) and try to handle them (normally just merge to
orginial dataset).
The problem that I am facing is how to handle a case where I have errors and
successfully deleted rows in the one returned dataset. If I merge the results
and then run AcceptChanges on the dataset, it shows the error but doesn't
leave it as needing work. I found that working through the rows and accepting
changes on rows with out errors worked until I hit successfully deleted rows.
When I accepted changes on these, it changed the dataset and stopped me
looping through the dataset (get an exception that the collection had changed
or something).
I walked through the rows sort of like this:
dim row as datarow
for each row in dataset.datatable.rows
Can anyone suggest a better way of doing this?
TIA
Molly