Loading Data

  • Thread starter Thread starter Ryan Schoolman
  • Start date Start date
R

Ryan Schoolman

I have a dataset and have it connected to a combobox but, how do I load the
data into it?


--
Ryan Schoolman - Programmer & Application Architect
(e-mail address removed)

PC Legends
http://www.pclegends.com

[w] 715.839.6855
[c] 715.379.0878
[h] 715.855.9003
 
Hi Ryan,

Have you tried using the DataSource property of the ComboBox to populate
it with the data from your data set ?.
Set the DisplayMember property to the field that you would
like to display.

myComboBox.DataSource = dataSet.Tables["Authors"].DefaultView;
myComboBox.DisplayMember = "au_id";

Does this not work ?

Regards,
Aravind C
 

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

Similar Threads

ListBox 1
Too Complex 1
Too Complex of a Query 2
SQL Limitations 2
connection string name 3
learning to code - dictionary question 8
Add a Hashtable to Applicatoin to save Global data 8
Help with ReadXML 1

Back
Top