CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006

    More data binding confusion

    Hello again!

    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.

  2. #2
    Join Date
    Jun 2009

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)