CoachBarker
Well-known member
- Joined
- Jul 26, 2007
- Messages
- 133
- Programming Experience
- 1-3
OK it has been awhile since I did this, I have a binding source, a Data Table, a Table Adapter and a combo box. Can someone help me with the steps to fill a combo box using these parts? When I fget done I am Showing System.Data....
Binding Source = bsServices
Data Table = tblService
Table Adapter = tblServiceTableAdapter
Binding Source = bsServices
Data Table = tblService
Table Adapter = tblServiceTableAdapter
VB.NET:
Private Sub frmComboBoxes_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'TestDataBaseDataSet.tblService' table. You can move, or remove it, as needed.
Me.TblServiceTableAdapter.Fill(Me.TestDataBaseDataSet.tblService)
'Bind the combobox control to the binding source
Me.cboServices.DisplayMember = "service"
Me.cboServices.ValueMember = "serviceID"
Me.cboServices.DataSource = Me.bsServices
End Sub
Last edited: