Author: rockdal | Posted on: 10/18/2008 12:01:33 PM | Views : 288

Can someone give me some advice or suggestions on how to sort a listbox or dictionary. I have two listbox. The first one I initial load from the database. Then I move selected items from listbox 1 to listbox2. I have this working great. My problems is that when I send the item from listbox 2 back to listbox 1, item goes to the bottom of the list. I have search for a method or property that would reorder automatically the listboxes.

 So I decide to create a 2 dictionaries( of String, Boolean) to track the two list boxes. Then I was going to sort the dictionaries each time an item(s) is added or deleted. I was going to use the OrderBy method. But I have not figured out how this is suppose to work. And I have been searching and cannot find an example that explains it where I can understand it.

Any help would be appreciated.
...

Go to the complete details ...