S
sandman
I've got a simple windows form with some bound textboxes
and Save button. Each texbox is bound to column in a table
in an Access database. The form fills fine - all the
fields show the correct data for the record I load. So
then I change the contents of one of the textboxes and
click on the Save button. The button's event handler then
calls the data adapter's Update method and I check the
return value. Nada-zilch-nothing. I even put a breakpoint
there, dug into the DataSet in the debugger and found the
DataRow in question. Sure enough, there is my changed
data but RowState is showing Unchanged. The documentation
("Introduction to DataSet Updates") says: "In Windows
Forms, the data-binding architecture takes care of sending
changes from data-bound controls to the dataset, and you
do not have to explicitly update the dataset with your own
code." Sounds pretty clear to me but obviously it's not
working the way I think it should. What am I missing??
and Save button. Each texbox is bound to column in a table
in an Access database. The form fills fine - all the
fields show the correct data for the record I load. So
then I change the contents of one of the textboxes and
click on the Save button. The button's event handler then
calls the data adapter's Update method and I check the
return value. Nada-zilch-nothing. I even put a breakpoint
there, dug into the DataSet in the debugger and found the
DataRow in question. Sure enough, there is my changed
data but RowState is showing Unchanged. The documentation
("Introduction to DataSet Updates") says: "In Windows
Forms, the data-binding architecture takes care of sending
changes from data-bound controls to the dataset, and you
do not have to explicitly update the dataset with your own
code." Sounds pretty clear to me but obviously it's not
working the way I think it should. What am I missing??