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. C#
  4. DataBindings Save

DataBindings Save

Scheduled Pinned Locked Moved C#
databasehelpquestionannouncement
4 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.
  • S Offline
    S Offline
    smarttom99
    wrote on last edited by
    #1

    I have databinding to a couple of textboxes. When i edit a textbox the data doesn't save unless I click on another control. Any ideas? Thanks to everyone for there help. Here is the code I use for ending the edit and then updating the database: BindingContext[DS_Entity1, "EV051"].EndCurrentEdit(); TA_EV051.Update(DS_Entity1.EV051);

    S 1 Reply Last reply
    0
    • S smarttom99

      I have databinding to a couple of textboxes. When i edit a textbox the data doesn't save unless I click on another control. Any ideas? Thanks to everyone for there help. Here is the code I use for ending the edit and then updating the database: BindingContext[DS_Entity1, "EV051"].EndCurrentEdit(); TA_EV051.Update(DS_Entity1.EV051);

      S Offline
      S Offline
      sam
      wrote on last edited by
      #2

      write your update code in TextChange event of text box

      S 2 Replies Last reply
      0
      • S sam

        write your update code in TextChange event of text box

        S Offline
        S Offline
        smarttom99
        wrote on last edited by
        #3

        With my app I can't update until the user clicks the save button. Is there a way to accomplish this to not hit update the DB until a toolbutton is hit. David

        1 Reply Last reply
        0
        • S sam

          write your update code in TextChange event of text box

          S Offline
          S Offline
          smarttom99
          wrote on last edited by
          #4

          With my app I can't update until the user clicks the save button. Is there a way to accomplish this to not hit update the DB until a toolbutton is hit.

          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