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