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. try to add new record with bindingsource component

try to add new record with bindingsource component

Scheduled Pinned Locked Moved C#
helpquestion
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.
  • A Offline
    A Offline
    ABBASI_RA
    wrote on last edited by
    #1

    hi i have a table t1 with some col c1,c2,c3. and a winform with some textbox binded to those filds via bindingsource and dataset. filling , loading , navigating and deleting are works but i dont know why ADDNEW dosnt work???? mey someone help me please.. thanks

    C 1 Reply Last reply
    0
    • A ABBASI_RA

      hi i have a table t1 with some col c1,c2,c3. and a winform with some textbox binded to those filds via bindingsource and dataset. filling , loading , navigating and deleting are works but i dont know why ADDNEW dosnt work???? mey someone help me please.. thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Don't you have to provide SQL to do the update ? You may need to post some code.

      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

      A 1 Reply Last reply
      0
      • C Christian Graus

        Don't you have to provide SQL to do the update ? You may need to post some code.

        Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

        A Offline
        A Offline
        ABBASI_RA
        wrote on last edited by
        #3

        i use all components needed in my winform: dataset , datatable , bindingsource , bindingnavigator , textboxes all commands in navigator work but the addnew command create a new row in bindingsource list and make it current and gets data from textboxes but it dosnt save the newrow data (current item ). dosnt attach added row to the bindingsource list.

        C 1 Reply Last reply
        0
        • A ABBASI_RA

          i use all components needed in my winform: dataset , datatable , bindingsource , bindingnavigator , textboxes all commands in navigator work but the addnew command create a new row in bindingsource list and make it current and gets data from textboxes but it dosnt save the newrow data (current item ). dosnt attach added row to the bindingsource list.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          ABBASI_RA wrote:

          bindingsource , bindingnavigator

          I never use these.  So, I can't really comment further, except that I think you need to specify SQL to save, and I've not seen your code.

          Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

          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