johnny2bad
Programmer
I have a VB.NET form that contains a ComboBox named "cmbWhseTerms".
And a dataset (dsDRF) that contains 2 tables:
"Header" - Contains header info.
"Terms" - Contains a list of possible shipping terms.
I created a relation between the two tables of the dataset using the "Terms" field in the header and the "Terms" field in the terms list:
Then I set the data source of the combobox to the "Terms" table and then bound it to the "Terms" field in the header.
The appropriate value will be selected when the form loads, but when I changed the value of the combobox dsDRF.Tables("Header").Columns("Terms") is not altered.
Any Ideas?
JohnD
"What we need is a list of specific unknown problems we will encounter.
And a dataset (dsDRF) that contains 2 tables:
"Header" - Contains header info.
"Terms" - Contains a list of possible shipping terms.
I created a relation between the two tables of the dataset using the "Terms" field in the header and the "Terms" field in the terms list:
Code:
dsDRF.Relations.Add("Terms", dsDRF.Tables("Terms").Columns ("Terms"), _
dsDRF.Tables("Header").Columns("Terms"))
Then I set the data source of the combobox to the "Terms" table and then bound it to the "Terms" field in the header.
Code:
.cmbWhseTerms.DataSource = dsDRF.Tables("Terms")
.cmbWhseTerms.DisplayMember = "Terms"
.cmbWhseTerms.ValueMember = "Terms"
.cmbWhseTerms.DataBindings.Add(New Binding("Text", _ dsDRF.Tables("Header"), "Terms"))
The appropriate value will be selected when the form loads, but when I changed the value of the combobox dsDRF.Tables("Header").Columns("Terms") is not altered.
Any Ideas?
JohnD
"What we need is a list of specific unknown problems we will encounter.