CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Mar 2003
    Posts
    95

    [RESOLVED] EndEdit Doesn't Add Record!

    Ok... this is driving me nuts.

    I have a DataGridView that loads an Access database when the application starts. I also have a bunch of text boxes that are bound to the same database. When you click on a row in the DataGridView the text boxes display the data for the record you clicked on.. perfect so far... now when I want to add a new record..

    I do...

    BindingSource.AddNew()

    This removes all the data from the textboxes and I start typing away.

    When im done I hit a Save button with the following code.

    BindingSource.EndEdit()

    It removes all the data from the text boxes but never saves to the database! What am I doing wrong?
    Last edited by fallnwrld; August 29th, 2009 at 05:51 AM.
    Using VB .Net 2008 Express Edition

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured