Sign in Join
FPDoc Onlineexperiment

TDBGridColumns.ColumnFromField function

Member of TDBGridColumnsprotectedIn unit DBGrids

ColumnFromField returns the collection item for the specified Field.

Declaration

pascal
function ColumnFromField(Field: TField): TColumn

Arguments

Field

Field to locate in the collection.

Function result

Collection item for the specified Field.

Description

ColumnFromField returns the collection item for the specified Field. The return value is Nil when Field has not been assigned.

ColumnFromField iterates over the Items in the collection to locate the specified Field. The return value is Nil when Field cannot be located in the Items for the collection.

ColumnFromField is used in the TDBGrid.AddAutomaticColumns method.

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