Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Saving data with data-bound Form Controls

Saving data with data-bound Form Controls

Scheduled Pinned Locked Moved Visual Basic
helpdatabasetutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Raabi Anony
    wrote on last edited by
    #1

    Hello everybody! I M facing a brain busting issue for the last 3 days and desperately seeking help. As a most trivial example, I M using the NorhtwindDataSet and has dropped only 3 Fields - ProductID, ProductName, and the UnitPrice from the Products table (in details view) on to the form. The Navigator displays all the records without any problem. When I modify any value from any of the 3 fields, it accepts obediently. But, when I run the form again, No modification is there - the same old values are making faces at me. The auto-generated code behind is as below:

    Private Sub ProductsBindingNavigatorSaveItem_Click_3(sender As Object, e As EventArgs) _
    Handles ProductsBindingNavigatorSaveItem.Click
    Me.Validate()
    Me.ProductsBindingSource.EndEdit()
    Me.TableAdapterManager.UpdateAll(Me.NorthwindDataSet)
    End Sub

    I tried my own Save button, and copied the above code in its Procedure, with no luck. I have tried this with plenty of databases, including my own database tables as well, with exactly the same problem. Please help me, taking me as a novice. Regards

    D 1 Reply Last reply
    0
    • R Raabi Anony

      Hello everybody! I M facing a brain busting issue for the last 3 days and desperately seeking help. As a most trivial example, I M using the NorhtwindDataSet and has dropped only 3 Fields - ProductID, ProductName, and the UnitPrice from the Products table (in details view) on to the form. The Navigator displays all the records without any problem. When I modify any value from any of the 3 fields, it accepts obediently. But, when I run the form again, No modification is there - the same old values are making faces at me. The auto-generated code behind is as below:

      Private Sub ProductsBindingNavigatorSaveItem_Click_3(sender As Object, e As EventArgs) _
      Handles ProductsBindingNavigatorSaveItem.Click
      Me.Validate()
      Me.ProductsBindingSource.EndEdit()
      Me.TableAdapterManager.UpdateAll(Me.NorthwindDataSet)
      End Sub

      I tried my own Save button, and copied the above code in its Procedure, with no luck. I have tried this with plenty of databases, including my own database tables as well, with exactly the same problem. Please help me, taking me as a novice. Regards

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Are you using the Access database version of Northwind, and all your other databases for that matter?

      A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      R 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Are you using the Access database version of Northwind, and all your other databases for that matter?

        A guide to posting questions on CodeProject

        Click this: Asking questions is a skill. Seriously, do it.
        Dave Kreskowiak

        R Offline
        R Offline
        Raabi Anony
        wrote on last edited by
        #3

        Thanks for a response, at least. I am using MS SQL Server 2015 Express edition and working in VisualBasic.NET. Not a single project is functioning to Insert or Update any record, whether in DataGridView or in detailed format. I M suffering and seek help desperately. Regards

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups