
help adding and removing items from a listview
Hello,
I was wondering if anyone can help me with this.
I'd like to give an option to my users in which they can prioritize the
items in a listview by clicking on an 'up' or 'down' button.
The only way I was able to do this, was by removing the item selected
and the previous item, and adding them in reverse order (selected was
added first, and previous was added second). For some reason, although
I'm doing the above, the items are added in the exact order they were
before. To make things more simple, take this example: I have items 1
and 2. I want 2 to come before 1. I add 2 and then I add 1 which should
put it in the right order, but whatever I seem to do it adds the 1
before the 2 like before
Thanks In Advance,
Leah Gerstenblit