Hey,
I have a collection with custom objects. That collection
is bounded to a listview (I used the article of Lhotka).
The listview is also sortable.
I have also textboxes bound to the same collection.
When SelectedIndexChanged fires on the listview, I have to
set the position of the currencymanager so the textboxes
shows the data of the selected row in the listview.
So good, so far if I use
cm.position = listviewitem.index;
But when I sort my listview, the listviewitem.index
doesn't correspond to the index in the collection.
So, the wrong object is bound to the textboxes.
How I know of the selected item, which object it is in the
collection. So, I can set the position of the
currencymanager to the right index.
Thanks,
Suz