Sign in Join
FPDoc Onlineexperiment

TCustomDrawGrid.HeaderClick procedure

Member of TCustomDrawGridprotectedIn unit Grids

Performs actions when a mouse click occurs in a header for a grid column.

Declaration

pascal
procedure HeaderClick(IsColumn: Boolean; index: Integer); override

Arguments

IsColumnTrue 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.