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. BindingSources and DataRelations

BindingSources and DataRelations

Scheduled Pinned Locked Moved C#
helpquestion
2 Posts 1 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.
  • J Offline
    J Offline
    Johnny 0
    wrote on last edited by
    #1

    In a WinForm if you create different BindingSources based on related tables in a DataSet, each time you create a new row in the child BindingSources the relationship key(s) value(s) are automatically entered in the child rows. This works really good. My problem is I would like to be able to edit the key(s) in the master row. If I do this then the child rows have no values created for the key(s) they take the value of null. Is there a way to change the behaviour of the child BindingSources for them to take the new key(s) value(s)? Is this even possible? Thanks in advance for any ideas I am running out fast!:confused:

    J 1 Reply Last reply
    0
    • J Johnny 0

      In a WinForm if you create different BindingSources based on related tables in a DataSet, each time you create a new row in the child BindingSources the relationship key(s) value(s) are automatically entered in the child rows. This works really good. My problem is I would like to be able to edit the key(s) in the master row. If I do this then the child rows have no values created for the key(s) they take the value of null. Is there a way to change the behaviour of the child BindingSources for them to take the new key(s) value(s)? Is this even possible? Thanks in advance for any ideas I am running out fast!:confused:

      J Offline
      J Offline
      Johnny 0
      wrote on last edited by
      #2

      Hopefull that this helps someone in the future, all I had to do is EndEdit() on the master BindingSource! A bit stupid from my part or was I :zzz:

      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