S
Sam Carleton
Ok, I am making some progress in updating a Dataset, but I am
still having some problems. I am starting with the "Walkthrough:
Displaying Data in a Windows Form Using a Parameterized Query"
which does not update its dataset. I have discovered that calling
Update() on the adapter will update the Dataset in once case but
not in another.
The case that works is that of the walkthrough, where the Dataset
has multiple rows. My table is a basic contact list, name,
address, etc. When my Dataset is "SELECT * FROM contacts WHERE
(state = ?)" which returns multiple rows and I change one of the
rows, the call on the Adapter's Update() works just fine.
On the other hand, when I change the adapter/dataset to be "SELECT
* FROM contacts WHERE (contact_id = ?)" where only one row is
returned, data is changed, the call on the Adapter's Update()
fails to make any changes to the database.
I am assuming that there is some issue when only returning one
row, verse multiple rows. Does anyone have any thoughts on this?
Sam
still having some problems. I am starting with the "Walkthrough:
Displaying Data in a Windows Form Using a Parameterized Query"
which does not update its dataset. I have discovered that calling
Update() on the adapter will update the Dataset in once case but
not in another.
The case that works is that of the walkthrough, where the Dataset
has multiple rows. My table is a basic contact list, name,
address, etc. When my Dataset is "SELECT * FROM contacts WHERE
(state = ?)" which returns multiple rows and I change one of the
rows, the call on the Adapter's Update() works just fine.
On the other hand, when I change the adapter/dataset to be "SELECT
* FROM contacts WHERE (contact_id = ?)" where only one row is
returned, data is changed, the call on the Adapter's Update()
fails to make any changes to the database.
I am assuming that there is some issue when only returning one
row, verse multiple rows. Does anyone have any thoughts on this?
Sam