It looks like you are reading this from a dataset, not a database? If so, go into the dataset designer and click to highlight one of the table adapters. Then in the Properties pane, click the little plus symbol (+) to expand the field "Connection" and the connection string will be in there.
An easy way to populate a combobox with data from a SQL database, using a dataset would be to create a query in the table adapter of the desired table. You would have to set up this query (using SQL) to get the data that you want. Then set the data source of the combo box to that table.
I realize that reading this could be confusing. I had done something like this. I had a table in my dataset that populated fully from a SQL database, and then I built queries to help populate only one column of data into the comboboxes. Maybe this will help:
Dim tblparts As DataSet1.docHeaderDataTable
tblparts = Me.DocHeaderTableAdapter.GetPartByModel(Convert.ToString(cmbModel.SelectedValue))
Me.cmbPart.DataSource = tblparts
Me.cmbPart.DisplayMember = "Part"
Me.cmbPart.ValueMember = "Part"
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...