|
-
Oct 17th, 2003, 03:33 PM
#1
Thread Starter
New Member
combo boxes and datasources???
I am using VB.NET and SQL Server. I have created a store procedure (getcompany) in SQL Server that gets one column of information from a table. i was to link this store procedure outcome to a combo box in a form. This is the code to get the store procedure:
Dim strcon As String = "data
source=BFS1;database=BS2;uid=sa;pwd=vonag340;"
Dim myadapter As New SqlClient.SqlDataAdapter("getcompany", strcon)
Dim ds As New DataSet
myadapter.SelectCommand.CommandType = CommandType.StoredProcedure
myadapter.Fill(ds, "output")
how do i link this to combobox1???
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|