A
Andreas Zita
Hi
I have a ListBox with a Custom Collection (Customers) as DataSource. The
collection implements IBindingList, but only the change notification part.
When changing a customers name in the collection I also sort the list using
InnerList.Sort(). The problem occurs when a certain item is selected int the
listbox while Im changing the name from a bound textbox in the same form.
This triggers the Sort() but apparently the bindingcontext is still focused
on the same position, which now is a completely different customer! How can
I make the bindingcontext to stay updated with the position of the selected
item?
/Andreas Zita
I have a ListBox with a Custom Collection (Customers) as DataSource. The
collection implements IBindingList, but only the change notification part.
When changing a customers name in the collection I also sort the list using
InnerList.Sort(). The problem occurs when a certain item is selected int the
listbox while Im changing the name from a bound textbox in the same form.
This triggers the Sort() but apparently the bindingcontext is still focused
on the same position, which now is a completely different customer! How can
I make the bindingcontext to stay updated with the position of the selected
item?
/Andreas Zita