Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15429

Combo box with data source

$
0
0
I am trying something new with my current project. I have a combo box, and it is being populated by a bound data source and table adapter with filter. It is displaying the names of technicians as pulled from a table in the DB, but from my understanding it should also have the other columns in the data pull.

The goal is to have it so when a technician is selected from the pull-down, the techID (different column than displayed) can by stored/placed where it needs to. For testing this is a label on the form. I have not been able to figure out exactly how to do this. When I click on the combo box, I am directed to the following in the code


Code:

Private Sub EMPLOYEEBindingSource_CurrentChanged(sender As Object, e As EventArgs) Handles EMPLOYEEBindingSource.CurrentChanged

End Sub

The actual control on the form has a name of cbUser. When I run the code in test it does populate the list, but trying to pull the ID is proving beyond my current knowledge.
The DataSource for the control is set for the EMPLOYEEBindingSource
The DisplayMember is presently set for Firstname (a valid column from the DB table)

Any pointers or hints would be appreciated.

Viewing all articles
Browse latest Browse all 15429

Latest Images

Trending Articles



Latest Images