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:
101000010100 4 000001001010 3 110100110000 5 010000000000 1 100101100000 4 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
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)VB Code:
List1.AddItem StringRow & Chr(9) & RowSum
Any codes/ ideas / highly appreciated ,
ashky.




Reply With Quote