February 15th, 2011, 02:32 PM
More data binding confusion
I just added three fields to one of the database tables contained in my bound dataset. I can't add a field using the wizard; all I can do is remove the table and re-add it, and I've been burned doing that. So I added the three fields using the designer. That worked. The fields now appear in my data source window. I drag the fields onto my form. I run my program, put data in the new fields, click the Save button, and -- nothing. Changed data in one of the old fields is saved, but data in the new fields is not saved. As far as I can tell from looking in the designer code and elsewhere, the new fields are set up correctly. What do I have to do to get data in the new fields into my database?
RobR, rapidly approaching the conclusion that Visual Studio data binding is a good idea that was never correctly implemented.
May 5th, 2011, 04:05 PM
Re: More data binding confusion
You'll need to review your save method.
The save method needs to send your dataset to the datasource that way it gets updated. I think what may be happening is your only updating the dataset.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!