How would I reference and pull data out of a generated dataset?
I have 2 projects in the same solution.
(1) MyUIProject
(2) MyDataSetProject ->MyGeneratedDataSet.xsd -->-->MyNamesTable (in the dataset)
All I want to do is reference the MyNamesTable and loop through the names in the table and put them in a list box. I'm having trouble getting the records out of the generated dataset.
I'm trying to do something like:
foreach (var name in MyDataSetProject.GeneratedDataSet.MyNamesTable)
{
MyDropDownList.Items.Add(new ListItem(name));
}
Thanks for any thoughts.