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

TCustomGrid.GetLastVisibleColumn

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

Declaration

Source position: grids.pas line 1119

protected function TCustomGrid.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

TCustomGrid.FixedCols

  

The number of fixed columns in the grid.

TCustomGrid.ColCount

  

Number of columns in the grid.

TCustomGrid.ColWidths

  

Provides indexed access to the Width for a column in the grid.

TCustomGrid.KeyDown

  

Handles key down events for the grid control.


Version 4.0 Generated 2025-05-03 Home