How to display SQL data in the comboBox

  • Thread starter Thread starter juventusaurabh
  • Start date Start date
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,
 
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
 
Back
Top