Row cannot be located for updating visual basic

Rated 3.97/5 based on 534 customer reviews

If you do send the changes back to the database, a second step is required.

If you aren't using data-bound controls, you have to manually call the method of the same Table Adapter (or data adapter) that you used to populate the dataset.

For more information about suspending events, see Turn off constraints while filling a dataset.

When you update a record in a dataset, there is the possibility of an error.

Merging datasets is useful when you have a local dataset and you get a second dataset from another application.

If the row has been deleted, there is no current version.

For example, you might inadvertently write data of the wrong type to a column, or data that's too long, or data that has some other integrity problem.

Or, you might have application-specific validation checks that can raise custom errors during any stage of an update event.

However, you can also use different adapters, for example, to move data from one data source to another or to update multiple data sources.

If you aren't using data binding, and are saving changes for related tables, you have to manually instantiate a variable of the auto-generated dataset).

Leave a Reply