Here is a way(maybe it is not the best):
1. write your sort procedure
2. define two form properties or variables : ListIndex and ValueFromIndex
3. when user clicks on a row (OnSelectIdem maybe, or OnClick), do
- check if the previous row(the row with the index ListIndex) has the value changed (it is different from ValueFromIndex). If so, sort the list
- update ListIndex and ValueFromIndex with the values from the current item
Ionut
Ionelul
Junior Poster in Training
94 posts since Dec 2009
Reputation Points: 17
Solved Threads: 27