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

# TCustomListView.AutoWidthLastColumn

Resizes the last visible column to fill the remaining display area for the control.

## Declaration

Source position: comctrls.pp line 1580

`protected property TCustomListView.AutoWidthLastColumn : Boolean read FAutoWidthLastColumn write SetAutoWidthLastColumn default False;`

## Description

AutoWidthLastColumn is a Boolean property which indicates if the last visible column is expanded to fill any unused display area for the list view control. When set to True, the affected column is located its Width is calculated and applied.

AutoWidthLastColumn is relevant when ViewStyle contains vsList or vsReport, and the Columns property has been populated for the list view control.

## See also

TCustomListView.ViewStyle |  | Sets one of ListView layouts: List (simple column), Report (few columns with full width), Icon (big icons), Small Icon (small icons, 16x16).
TCustomListView.Columns |  | Collection with the column definitions for the list view control (size, alignment, image index, etc.).
TCustomListView.DoSetBounds |  | Set the bounds for the control to the specified values.