B4J Question Sort a table view

strupp01

Active Member
Licensed User
Longtime User
I would like to sort a TableView. For this I found in the Internet a code of Erel and tried to use it. Unfortunately does not work. The sorting is not OK.
Who can show me the error in my program?
 

Attachments

  • B4J_TableView_sort.zip
    2.5 KB · Views: 223

stevel05

Expert
Licensed User
Longtime User
TH.SortColumn should be a string not a Label.

Try:
B4X:
Dim L As Label = row(ColumnIndex)
th.SortColumn = L.Text
 
Upvote 0
Top