List View Column - SortAsColumn Property

Specifies an alternate column to use to sort the data

Member of List View Column (PRIM_LVCL)

Data Type - PRIM_LVCL - Defines the data class and behavior of a column in a list view


The SortAsColumn property can be used to specify another column as the key for sorting.
The SortOnClick property must be True.
This feature is useful for situations where the information displayed does not sort naturally. For example, a column may contain a rating of Good, Average and Poor.  Ideally when sorted the data would remain in that order, but A comes before G, so the Average items would appear at the top.
To solve the problem a second hidden column could be added containing the values 1, 2 and 3 respectively and this could be used for sorting.

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020