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. Databinding

Databinding

Scheduled Pinned Locked Moved C#
databasexmlquestionworkspace
1 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.
  • M Offline
    M Offline
    monrobot13
    wrote on last edited by
    #1

    I'm new to databinding and I'm having some trouble getting my program to work the way I want it. I'm not using a database of any kind, but instead I'm just using a DataSet as the database (writing the xml to disk). The DataSet has three DataTables. I have my form components setup like this. I have my strongly-typed DataSet, and three BindingSource's, one is bound to my strongly-typed DataSet, the other two are bound to the first BindingSource, with their DataMembers set to their specific DataTables in the XSD (all of these were generated automatically, when I setup databinding on my controls). Now, I have a Combobox on the form that's bound to one of the BindingSources that's bound to the BindingSource that's bound to the strongly-typed DataSet. Here's a diagram

    MyDataSet <-- firstBindingSource <-- secondBindingSource <-- Combobox
    ^-- thirdBindingSource
    //the arrow points to what the component is bound to

    When I load the data into the dataset the combobox still isn't populate with the information, it's just blank. I know the dataset has the values in it though. Any ideas? - Aaron

    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