N
Nikolay Petrov
I have a Combo box, binded to a dataset
With cmbCompany
.DataSource = dsSpecContact
.DisplayMember = "Companies.CompanyName"
.ValueMember = "Companies.CompanyID"
End With
What I want is to change the SelectedIndex of this Combo Box by using the
ValueMember or DisplayMemver values. I mean the "Companies.CompanyID" or
"Companies.CompanyName".
Some how I have to iterate through all the item in Combo Box and find which
item has ValueMember = "Companies.CompanyID" or DisplayMember =
"Companies.CompanyName" and select it.
Does anyone know how to do that, couse I can't figure it out
TIA
With cmbCompany
.DataSource = dsSpecContact
.DisplayMember = "Companies.CompanyName"
.ValueMember = "Companies.CompanyID"
End With
What I want is to change the SelectedIndex of this Combo Box by using the
ValueMember or DisplayMemver values. I mean the "Companies.CompanyID" or
"Companies.CompanyName".
Some how I have to iterate through all the item in Combo Box and find which
item has ValueMember = "Companies.CompanyID" or DisplayMember =
"Companies.CompanyName" and select it.
Does anyone know how to do that, couse I can't figure it out
TIA