Fill combobox from a select query

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

How do I fill a combobox from a select query returning a list of names. I'd
also like to refresh this list when an action (LIke adding a new value to
the list occurs.
 
Hi,

Are you talking about winforms?
You should create an adapter with select command and a dataset (strong typed
perhaps) and use its Fill method to fill the dataset whenever you want.
Attach the dataset to combo box...
 

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