Vcl.ComCtrls.TCustomListView.ColumnClick

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ColumnClick: Boolean read FColumnClick write SetColumnClick default True;

C++

__property bool ColumnClick = {read=FColumnClick, write=SetColumnClick, default=1};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomListView

Description

Determines whether the column header behaves like a button.

Use ColumnClick to specify whether the OnColumnClick event should occur when the user clicks on the column header. When ColumnClick is true, the OnColumnClick occurs when the column header is clicked with the mouse. When ColumnClick is false, the OnColumnClick event never occurs.

Note: For column clicks to work, the column headers must be displayed. To display the headers, set the ShowColumnHeaders property to true and the ViewStyle property to vsReport.

See Also