N
Nicolae Fieraru
Hi All,
Could somebody provide me step by step instructions of how to populate a
combobox with values from a table (any table from northwind.mdb will do).
What I have done is:
- I added on the form combobox
- I added an oledbConnection which I set to point to the Northwind.mdb
database
- I added an oledbDataAdapter
- I generated a dataSet
Then I setup the data properties of ComboBox (DataSource =
dataSource1.MyTable, DisplayMember = MyField, ValueMember = MyIdField)
After I build the program, when I drop down the combobox, there are no items
in it. What am I missing?
I tried to run the sample program ComboBoxBinding provided by Microsoft in
"SDK\v1.1\QuickStart\winforms\samples\" but when I try to run it, it raises
an error.
Regards,
Nicolae
Could somebody provide me step by step instructions of how to populate a
combobox with values from a table (any table from northwind.mdb will do).
What I have done is:
- I added on the form combobox
- I added an oledbConnection which I set to point to the Northwind.mdb
database
- I added an oledbDataAdapter
- I generated a dataSet
Then I setup the data properties of ComboBox (DataSource =
dataSource1.MyTable, DisplayMember = MyField, ValueMember = MyIdField)
After I build the program, when I drop down the combobox, there are no items
in it. What am I missing?
I tried to run the sample program ComboBoxBinding provided by Microsoft in
"SDK\v1.1\QuickStart\winforms\samples\" but when I try to run it, it raises
an error.
Regards,
Nicolae