You should have fields listed in the code-behind for your strongly typed
dataset.
If you are using data binding, you can bind the ValueMember and
DisplayMember to the appropriate fields. For example, for a Customers
dataset, I might set them like this:
CustomersDataSet dataSource = new CustomersDataSet();
CustomersTableAdapter adapter = new CustomersTableAdapter();
adapter.Fill(dataSource);
myCombo.DataSource = dataSource.Customers;
myCombo.DisplayMember = "CompanyName";
myCombo.ValueMember = "CustomerID"
Is that what you mean, or do you want to literally load them?
Robin S.
-----------------------------------------------------------------
"Andy C" <An***@discussions.microsoft.comwrote in message
news:AA**********************************@microsof t.com...
Hi,
Does anyone have an example code snippet from a Windows App that loads a
field from a strongly typed DataSet into a Combobox? Even dissecting the
DataSet via the Immediate Pane I still can't work out what part of the
DataSet I need to load.
Thanks very much.
Andy