Sign in Join
FPDoc Onlineexperiment

TCustomGrid.GetLastVisibleColumn function

Member of TCustomGridprotectedIn unit Grids

Gets the column number for the last visible non-fixed column in the grid.

Declaration

pascal
function GetLastVisibleColumn: Integer

Function result

Position for the last visible column in the grid.

Description

GetLastVisibleColumn is an Integer function used to get the column number for the last visible non-fixed column in the grid. A visible column is one which has a non-zero width for the column in ColWidths.

The return value contains the column number (zero-based) for the column matching the criteria. If a column with a non-zero width is not found, the return value contains -1.

GetLastVisibleColumn is called from the KeyDown method when handling Tab key navigation for the grid control.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.