T
Teo
Hi! I am trying to populate a combo box using a data reader.
I want to add the Item as well as the ValueMember. Will this do the trick?
Do While oDr.Read
cmbestudiante.Items.Add(oDr.Item("Estudiante_Apellido") + ", " +
oDr.Item("Estudiante_Nombre"))
cmbestudiante.ValueMember = oDr.Item("Estudiante_ID")
Loop
I want to add the Item as well as the ValueMember. Will this do the trick?
Do While oDr.Read
cmbestudiante.Items.Add(oDr.Item("Estudiante_Apellido") + ", " +
oDr.Item("Estudiante_Nombre"))
cmbestudiante.ValueMember = oDr.Item("Estudiante_ID")
Loop