F
forest demon
I have an IList/Collection that contains items in a ListView.
If i click on an item in the ListView, i can capture the index
(lv.SelectedItems[0].Index) and reference the correct item in the
associated IList/Collection .
Once I've sorted the ListView, obviously the indices do not match up
anymore. So, should i sort the IList/Collection when I sort the
ListView (which seems overkill to me) or some how sort the indices
associated with the ListView?
I'm buffaloed at this point.
Any input is appreciated. Thanks guys (and gals).
If i click on an item in the ListView, i can capture the index
(lv.SelectedItems[0].Index) and reference the correct item in the
associated IList/Collection .
Once I've sorted the ListView, obviously the indices do not match up
anymore. So, should i sort the IList/Collection when I sort the
ListView (which seems overkill to me) or some how sort the indices
associated with the ListView?
I'm buffaloed at this point.
Any input is appreciated. Thanks guys (and gals).