B
Brian Mitchell
Hello, I am trying to update my listbox whenever I remove something from the
underlying datasource (IList). I understand that you must use the
SuspendBinding and ResumeBinding methods of the BindingContext to accomplish
this but I think I am doing something wrong:
Dim bc As BindingManagerBase = BindingContext(MyClass)
bc.SuspendBinding()
MyClass.Remove(ListBox1.SelectedItem)
bc.ResumeBinding()
The item is getting removed from my class but the listbox never updates.
Am I using the BindingContext incorrectly?
Thanks!!
underlying datasource (IList). I understand that you must use the
SuspendBinding and ResumeBinding methods of the BindingContext to accomplish
this but I think I am doing something wrong:
Dim bc As BindingManagerBase = BindingContext(MyClass)
bc.SuspendBinding()
MyClass.Remove(ListBox1.SelectedItem)
bc.ResumeBinding()
The item is getting removed from my class but the listbox never updates.
Am I using the BindingContext incorrectly?
Thanks!!