Avatar of MBHEY131
MBHEY131
 asked on

combo box data binding ?

Hello Again,

vb.net vs.2012

Here is a little routine that works on fine on the form load But when I recall An ID code from a database and set the selected value I cannot seem to get the BindingSource to update the label right next door on the form the bring up the corresponding Name???

       sform.AdvisorsBindingSource1.DataSource = sform.Database1DataSet11.Advisors
        sform.cboADV_No.DataSource = sform.AdvisorsBindingSource1
        sform.cboADV_No.DisplayMember = "Advisor_ID"
        sform.cboADV_No.ValueMember = "Advisor_ID"
        sform.cboADV_No.SelectedValue = strAdv_Num

by refreshing the bindings I am under the believe that those Bindings should reflect the corresponding objects??
Visual Basic Classic.NET Programming

Avatar of undefined
Last Comment
Ess Kay

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ess Kay

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck