Loading Data

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
 
A

Aravind C

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


Top