Hai,

I am having a query with the .Sorted property of a ListBox Control. I am aware that it can be set only during Design time.

But what if i wanted to sort only according to the last column of the string in the listbox.

Example:
========

Let's say these rows are added to the List1 already.
VB Code:
  1. 101000010100 4
  2.       000001001010 3
  3.       110100110000 5
  4.       010000000000 1
  5.       100101100000 4
  6.       101000000000 2

Where the last column value corresponds to the rowsum of each string. I compute the rowsum as i create the string.

With the below code
VB Code:
  1. List1.AddItem StringRow & Chr(9) & RowSum
Now how can i sort according to the last column. I set the sorted property to true, but this is sorting by Value and give wrong results, while i wanted to sorted according to the RowSums. (the last column)


Any codes/ ideas / highly appreciated ,

ashky.