Sign in Join
FPDoc Onlineexperiment

TCustomDBGrid.IsColumnVisible function

Member of TCustomDBGridprotectedIn unit DBGrids

Indicates if the specified column is visible using the column definition or its display width.

Declaration

pascal
function IsColumnVisible(aCol: Integer): Boolean

Arguments

aCol

Position for the column examined in the method.

Function result

True if the specified column number is a visible column for the grid control.

Description

IsColumnVisible is a Boolean function which indicates if the specified column number is a visible column for the grid control. IsColumnVisible uses the Columns collection (when Enabled) to get the TColumn instance at the specified position. Its Visible property is used as the return value for the method. When Columns is not used in the control, the ColWidths property is checked to ensure that the specified column number has a positive non-zero width.

See also

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