DropDown List from DataConn

G

Guest

I know there are several steps envolved in establishing a connection to a DB
and then creating a DropDown List from Sql.

I am using Visual Studio 2003 7.1.3088 and I am trying to connect and create
a drop down list from a table.column in the db.

Could you point me in the right direction for some "good" documentation
completing this? I have established my db "connection and have been trying
to create a datagrid in order to accomplish the DropDown List with no
success.

thx
/j.>
 
C

Cor Ligthert[MVP]

Jack,

The first thing you should do is to use a windowsform or a webpage where the
dropdown can be located.

Cor
 
C

Cor Ligthert[MVP]

Then add a combobox or a listbox to that.
Create a datatable,
Fill that with a dataadapter
Set the datasource of one from the first line
Set the displaymember to the name of the column you want to show
And run


Cor
 

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