How to display SQL data in the comboBox

J

juventusaurabh

Hello,
I have created a GUI with a couple of ComboBoxes. In these
comboBoxes, instead of having the date from the Collection Property, I
would like the data from some of the SQL tables to be displayed.
Any idea on how to approach this??

Thanks,
 
C

Chris

juventusaurabh said:
Hello,
I have created a GUI with a couple of ComboBoxes. In these
comboBoxes, instead of having the date from the Collection Property, I
would like the data from some of the SQL tables to be displayed.
Any idea on how to approach this??

Thanks,

Set the Datasource of the combobox to your datatable. Set the
"displaymember" of the combobox to the column you want and you are home!

Chris
 

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

Top