Skip to main content

TcxGridTableView.OnColumnHeaderClick Event

Occurs on clicking a column header.

Declaration

property OnColumnHeaderClick: TcxGridColumnEvent read; write;

Remarks

The OnColumnHeaderClick event is fired on clicking a column header within the current View. The column and the View are passed as the Sender and AColumn parameters respectively.

Column headers are displayed if the View’s OptionsView.Header property is set to True.

Clicking a column header activates sorting data by this column. However, you can disable the user’s ability to sort data in this manner via the View’s OptionsCustomize.ColumnSorting and column’s Options.Sorting properties. In this case, the OnColumnHeaderClick event is still fired, but sorting is not applied.

See Also