[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TCustomListView.AutoSortIndicator

Indicates if the control automatically changes the column and/or order indicator when a column is clicked.

## Declaration

Source position: comctrls.pp line 1579

`protected property TCustomListView.AutoSortIndicator : Boolean read FAutoSortIndicator write FAutoSortIndicator default False;`

## Description

AutoSortIndicator is a Boolean property which controls whether the sort column and order indicator are changed when a Report view column header is clicked. The default value for the property is False. When set to True, a clicked column causes the sort indicator to be updated to reflect the value in SortDirection.

AutoSortIndicator is significant when AutoSort has been enabled and SortType is not set to stNone.

## See also

TCustomListView.ColClick |  | Performs actions to handle a mouse click on a Report view column header.
TCustomListView.OnColumnClick |  | Event handler signalled when a column header for the control is clicked.
TCustomListView.SortColumn |  | Ordinal position for the column used to sort the list items, or -1 when not assigned.
TCustomListView.SortDirection |  | Sorting direction (order) for the current SortColumn.
TCustomListView.SortType |  | Specifies the sorting mechanism used for the current SortColumn.
TListColumn.SortIndicator |  | Specifies the sort indicator displayed for the column.