E
ECathell
'------------------------------------------------------------------------------------------------
'Label Formats
'------------------------------------------------------------------------------------------------
Me.cboLabelFormat1.DataSource = mLabelFormatsCollection
Me.cboLabelFormat1.DisplayMember = "FormatName"
Me.cboLabelFormat1.DataBindings.Add(New Binding("Text", mProductCollection, "Formatname1"))
Me.cboLabelFormat2.DataSource = mLabelFormatsCollection
Me.cboLabelFormat2.DisplayMember = "FormatName"
Me.cboLabelFormat2.DataBindings.Add(New Binding("Text", mProductCollection, "Formatname2"))
The databinding works, but the controls display the same information depending on which the first bindings are bound. FormatName1 and FormatName2 can have different values, but both values come from mLabelFormatsCollection...
What am I missing?
'Label Formats
'------------------------------------------------------------------------------------------------
Me.cboLabelFormat1.DataSource = mLabelFormatsCollection
Me.cboLabelFormat1.DisplayMember = "FormatName"
Me.cboLabelFormat1.DataBindings.Add(New Binding("Text", mProductCollection, "Formatname1"))
Me.cboLabelFormat2.DataSource = mLabelFormatsCollection
Me.cboLabelFormat2.DisplayMember = "FormatName"
Me.cboLabelFormat2.DataBindings.Add(New Binding("Text", mProductCollection, "Formatname2"))
The databinding works, but the controls display the same information depending on which the first bindings are bound. FormatName1 and FormatName2 can have different values, but both values come from mLabelFormatsCollection...
What am I missing?