moving items within a ListBoxEx list

  • Thread starter Thread starter Patino
  • Start date Start date
P

Patino

Hello,

I need to move an item from a ListBoxEx to the top of the stack, how
can I do this programmatically?

I create the ListBoxEx by reading records sequencially. For each record
there is a lot of work to do to create a ListItemEx to finally add to
the ListBoxEx. Unfortunately, the records are not ordered, and when I
find a specific one, after I create a ListItemEx for it, I need this
one to be the first one on the ListBoxEx.

Any ideas how I can accomplish this?

Thanks in advance!
 
You need to order them prior to adding to listbox. Add them to an arraylist,
sort it and then add
 
Back
Top