How to add data to combox box?
-
Hi All, Is there a way to add (or map) directly from dataset to combobox? I tried to use
**ComboBox.DataSource = ADataSet**
, but it doesn't seem to work. The reason that i'm using dataset to map direct to combobox because the data in the database is huge. It's about 20,000 records; and I don't want to use for loop or while loop to loop through and add one by one. If anyone know a way to do it, please help me. Thank you for helping. John -
Hi All, Is there a way to add (or map) directly from dataset to combobox? I tried to use
**ComboBox.DataSource = ADataSet**
, but it doesn't seem to work. The reason that i'm using dataset to map direct to combobox because the data in the database is huge. It's about 20,000 records; and I don't want to use for loop or while loop to loop through and add one by one. If anyone know a way to do it, please help me. Thank you for helping. JohnIn addition to set DataSource, you have to set DataTextField, DataValueField also. If the DataSet has more than one table you to set the DataMember property also.