Re: Need to wait for TableAdapter.Update to finish

Tech-Archive recommends: Fix windows errors by optimizing your registry



Boris,

How are you updating the database, while using your save button.

Standard is this just a synchrone process.

Cor

"Boris227" <adrian_morris@xxxxxxxxxxxxxx> schreef in bericht
news:1bf92f36-6706-4696-9821-efbce22420f3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have written an application that has a DataGridView for users to
amend a table. When finished they click a 'Save' button, which
generates a series of queries based on the new data. The problem is
this:

The underlying table is always updated correctly and when I step
through the code with the debugger it works perfectly, but when run it
live the events don't take account of the changes. This makes me
believe that the queries are not waiting for the update to complete.
Does this make sense? Can I do anything to make them wait?

Thanks


.


Quantcast