HOw to populate the combo box?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a combo box that I want to populate from a SELECT query How to do this?
 
Hi Raj,

You can read the data into a datareader or a dataset and then read
each element and do combobox.items.add() or u could get ur items into a
arraylist and set the combobox.datasource as arraylist.

cboSearchBy.DataSource = arrlistComboData;

--
Tarkeshwar
..Net Programmer
Fifth Generation Technologies

raj said:
I have a combo box that I want to populate from a SELECT query How to do
this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top