Sign in Join
FPDoc Onlineexperiment

TCustomListView.AutoSort property

Member of TCustomListViewprotectedIn unit ComCtrls

Controls automatic updates to the sort column and order indicator for the control.

Declaration

pascal
property AutoSort: Boolean read FAutoSort write FAutoSort default True;

Description

AutoSort is a Boolean property used to determine whether the sort column and order indicator are automatically updated when a Report view column header on the control is clicked. The default value for the property is True.

When enabled, the value in SortColumn is set to the position for the clicked column header. Use AutoSortIndicator to control whether the sort indicator is automatically updated for the Columns defined for the control.

AutoSort has no effect when SortType is set to stNone.

See also

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