TCustomDrawGrid.HeaderClick procedure
Performs actions when a mouse click occurs in a header for a grid column.
Declaration
procedure HeaderClick(IsColumn: Boolean; index: Integer); overrideArguments
IsColumn | True when a column has been clicked instead of a row. |
index | Column or row number for the click notification. |
Description
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.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
