Re-ordering collection C#

Posted by Adam on Stack Overflow See other posts from Stack Overflow or by Adam
Published on 2010-03-30T17:34:17Z Indexed on 2010/03/30 17:43 UTC
Read the original article Hit count: 235

Filed under:
|
|
|

Hi - I have a problem which I cant seem to find answer to through searches (either that or I am searching for the completely wrong thing!). I have a list of items called "Top 10" in a sortedlist item that is populated from my DB (SortedList where int is position and string is item). I want to be able to move items up & down the list order at the click of a button and then save the new order back to the DB. I am OK with the DB part it is just the re-ordering I am really struggling with - is a sortedlist the correct collection for this?

Many thanks for any advice offered.

© Stack Overflow or respective owner

Related posts about c#

Related posts about collections