Advertisement

02.03.2008 at 01:41AM PST, ID: 23133003
[x]
Attachment Details

Three Binding Source and two combo box Problems

Asked by Paulsburbon in Microsoft Visual Basic.Net, VB Database Programming, Visual Studio

Tags:

I have a windows form with a bunch of bound text boxes and three combo boxes. The combo boxes are for looking up values. The values in one of the combo boxes is based off of a selection to another ocmbo box. I attached the code that I'm using and it works however if I move to a record it shows the first available item in stead of the correct one. So if the items in the combo box are 1,2,3 and it's set to 3 and I move back one then forward one it reverts to 1 in the combo box if I save 3 as the vale in the datasource it shows up as 3 but when I load the form it shows 1. Any ideas?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
Me.AdjustersBS.DataSource = Me.AdjusterFormDataset1.Adjusters
Me.InsuranceCoBS.DataSource = Me.AdjusterFormDataset1.InsuranceCompanies
Me.LocationBS.DataSource = Me.InsuranceCoBS
        Me.LocationBS.DataMember = "InsuranceCompanies_Locations"
Me.AdjusterBN.BindingSource = Me.AdjustersBS
 
With Me.cboInsuranceCompany
            .ValueMember = "InsuranceCompanyID"
            .DisplayMember = "CompanyName"
            .DataSource = InsuranceCoBS
            .DataBindings.Add("SelectedValue", AdjustersBS, "InsuranceCompanyID")
        End With
 
        With Me.cboLocation
            .ValueMember = "LocationID"
            .DisplayMember = "LocationName"
            .DataSource = LocationBS
            .DataBindings.Add("SelectedValue", AdjustersBS, "LocationID")
        End With
[+][-]02.03.2008 at 07:12AM PST, ID: 20808860

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.03.2008 at 09:58AM PST, ID: 20809324

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.03.2008 at 04:00PM PST, ID: 20810999

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.03.2008 at 04:03PM PST, ID: 20811010

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.03.2008 at 09:40PM PST, ID: 20812193

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.03.2008 at 09:45PM PST, ID: 20812209

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2008 at 05:26AM PST, ID: 20814022

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2008 at 04:18PM PST, ID: 20819558

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.05.2008 at 12:44AM PST, ID: 20821514

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.05.2008 at 02:54AM PST, ID: 20821952

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.05.2008 at 03:11AM PST, ID: 20822008

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.05.2008 at 03:23AM PST, ID: 20822050

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.05.2008 at 04:35AM PST, ID: 20822366

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.05.2008 at 05:49PM PST, ID: 20828876

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.05.2008 at 05:54PM PST, ID: 20828887

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.06.2008 at 09:39AM PST, ID: 20833969

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, VB Database Programming, Visual Studio
Tags: VB.net
Sign Up Now!
Solution Provided By: Sancler
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.07.2008 at 01:17PM PST, ID: 20845308

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 04:35AM PDT, ID: 21261851

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628