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

# TCustomDrawGrid.OnHeaderClick

Event handler signalled when the fixed header for a column or row is clicked.

## Declaration

Source position: grids.pas line 1561

`public property TCustomDrawGrid.OnHeaderClick : THdrEvent read FOnHeaderClick write FOnHeaderClick;`

## Description

Signalled from the HeaderClick method (when assigned). It occurs when a mouse up event or column accelerator key is handled for a header cell on the grid control. It occurs after the SortOrder and SortColumn have been updated and the Sort method has been called when ColumnClickSorts is enabled.

## See also

TCustomDrawGrid.HeaderClick |  | Performs actions when a mouse click occurs in a header for a grid column.
TCustomGrid.HeaderClick |  | Performs actions needed when a mouse click occurs in a fixed header for a grid column or row.
TCustomGrid.ColumnClickSorts |  | Indicates if clicking a column header changes its sort order.
TCustomGrid.SortOrder |  | Controls the order used for the sort column (ascending or descending).
TCustomGrid.SortColumn |  | Column number used to sort the rows in the grid.
TCustomGrid.Sort |  | Sorts rows or columns in the grid.
THdrEvent |  | Specifies an event handler signalled when an event occurs in a fixed header cell.