DesktopListBox.ColumnSorted

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Event


DesktopListBox.ColumnSorted(Column as Integer) As Boolean

New in 2021r3

Supported for all project types and targets.

The user has clicked on the passed column header to sort that column or the Sort method was called.

Notes

Return True if you don't want the ListBox to be sorted.

Note that sorting is based on string comparisons. If you want to sort numbers, dates or CheckBoxes then you have to use a custom sort in the DesktopListBox.RowComparison event.

If you're trying to prevent the user from sorting the column in the first place, use DesktopListBox.ColumnSortDirectionAt.