Sign in Join
FPDoc Onlineexperiment

TCustomListView.SortColumn property

Member of TCustomListViewprotectedIn unit ComCtrls

Ordinal position for the column used to sort the list items, or -1 when not assigned.

Declaration

pascal
property SortColumn: Integer read FSortColumn write SetSortColumn default - 1;

Description

SortColumn is an Integer property with the ordinal position for the column used to sort the list items for the control. The default value for the property is -1, and indicates that an explicit column position has not been assigned.

Changing the value for the property causes the Sort method to be called.

SortColumn is updated in the ColClick method when a column header for the control has been clicked. It also indicates which entry in Columns has the sort indicator when AutoSortIndicator is enabled.

Values in SortType, SortColumn, and SortDirection are passed to the widgetset class when its Handle is allocated or updated.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.