Multiple ComboxBox selected RRS feed

  • Question

  • I have two ComboBoxes which are bound to the same object (a Collection(Of myType)), and I am seeing that when the selected item on one is changed, either by the user or the code, the selection_changed event is being called on both and they always have the same value for selectedItem.

    The obvious work around is to create two collection objects with the same members and bind the controls to those, but this *shouldn't* be needed.

    I have also noticed that modifying the contents of such a collection object after binding it to a list or comboBox does not update the list (correct), even if I bind the object to the control again (not good, or reasonable).

    Clarification: By 'binding' I mean
    DropDown1.DataSource = myCollectionObject

    (Using VB .NET on VS 2008 w/ SP1)
    Tuesday, September 2, 2008 6:20 PM