C
Christian
Hi,
I have one databound-control for which I set the DataBinding properties at
design-time as follows :
the Text-property of a label-control 'lblProductname' is bound to the
field
"Productname" in a DataSet named DsProducts1.Products
and I have another databound-control for which I set the DataBinding
properties at run-time :
lblUnitsInStock.DataBindings.Add("Text", DsProducts1.Products,
"UnitsInStock")
Then using a currency manager :
Dim m_cm As CurrencyManager
m_cm = Me.BindingContext(DsProducts1, "Products")
Now when I click on a button "Next"
Private Sub btnNext_Click(.....) Handles btnNext.Click
m_cm.Position += 1
End Sub
.... does the data in the design-time control change but the data in the
run-time bound control does NOT change ???
how come ?
thnx
Chris
I have one databound-control for which I set the DataBinding properties at
design-time as follows :
the Text-property of a label-control 'lblProductname' is bound to the
field
"Productname" in a DataSet named DsProducts1.Products
and I have another databound-control for which I set the DataBinding
properties at run-time :
lblUnitsInStock.DataBindings.Add("Text", DsProducts1.Products,
"UnitsInStock")
Then using a currency manager :
Dim m_cm As CurrencyManager
m_cm = Me.BindingContext(DsProducts1, "Products")
Now when I click on a button "Next"
Private Sub btnNext_Click(.....) Handles btnNext.Click
m_cm.Position += 1
End Sub
.... does the data in the design-time control change but the data in the
run-time bound control does NOT change ???
how come ?
thnx
Chris