G
Guest
Hi.
I magine that I have a listbox that is bound to a data table.
This means that there is the possiblity that the data table will have
new rows, edited rows, and/or deleted rows.
After everything is done, I would like, at the push of a button, to
update the database with the change(s) made to the data table
via the data adapter's update() method.
However, when I call the update() method, I get an exception error
telling me that the InsertCommand, UpdateCommand, or DeleteComand
has not been set.
My problem is, if I set the said properties, I do not have the necessary
values
to pass to the commands (e.g. values for new rows).
How do I do this all at once?
Thank you
I magine that I have a listbox that is bound to a data table.
This means that there is the possiblity that the data table will have
new rows, edited rows, and/or deleted rows.
After everything is done, I would like, at the push of a button, to
update the database with the change(s) made to the data table
via the data adapter's update() method.
However, when I call the update() method, I get an exception error
telling me that the InsertCommand, UpdateCommand, or DeleteComand
has not been set.
My problem is, if I set the said properties, I do not have the necessary
values
to pass to the commands (e.g. values for new rows).
How do I do this all at once?
Thank you