[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Performs actions when a mouse click occurs in a header for a grid column.
Source position: grids.pas line 1431
protected procedure TCustomDrawGrid.HeaderClick( |
IsColumn: Boolean; |
index: Integer |
); override; |
IsColumn |
|
True when a column has been clicked instead of a row. |
index |
|
Column or row number for the click notification. |
HeaderClick is an overridden method ensures that the SortOrder for the grid is toggled when Index contains the SortColumn defined for the grid control. HeaderClick calls the inherited method in TCustomGrid to Sort the non-fixed rows in the grid control.
HeaderClick signals the OnHeaderClick event handler (when assigned) to performed any actions needed after the data has been sorted in the method.
|
Performs actions needed when a mouse click occurs in a fixed header for a grid column or row. |
|
|
Column number used to sort the rows in the grid. |
|
|
Controls the order used for the sort column (ascending or descending). |
|
|
Sorts rows or columns in the grid. |
Version 4.0 | Generated 2025-05-03 | Home |