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

TColumn

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a display column for the TDBGrid control

Declaration

Source position: dbgrids.pas line 257

type TColumn = class(TGridColumn) end;

protected

  function CreateTitle; override;

  

CreateTitle - creates a column title and returns it in the result

  function GetDefaultAlignment; override;

  

Gets the default alignment for the Field in the column definition

  function GetDefaultDisplayFormat;

  

Gets the default display format for the Field in a column

  function GetDefaultValueChecked; override;

  

Gets the default value for a Checkbox in the Checked state as a String

  function GetDefaultValueUnchecked; override;

  

Gets the default String value for a Checkbox in the UnChecked state

  function GetDefaultVisible; override;

  

GetDefaultVisible - returns the default value for the Visible property

  function GetDisplayName; override;

  

Gets the display name for the collection item

  function GetDefaultReadOnly; override;

  

Gets the default value for the ReadOnly property

  function GetDefaultWidth; override;

  

Gets the effective width for the column

  function GetPickList; override;

  

Gets the values in the pick list for the column

  property IsAutomaticColumn: Boolean; [r]

  

Indicates if the column was automatically added at run-time

  property IsDesignColumn: Boolean; [r]

  

Indicates if the column was added at design-time

  procedure LinkField;

  

Establishes a link between the FieldName and the Field in a Dataset

public

  constructor Create(); override;

  

Constructor for the TColumn instance

  procedure Assign(); override;

  

Stores properties from a persistent class in the current class instance

  function IsDefault; override;

  

IsDefault - returns True if this column is the default

  property DesignIndex: Integer; [r]

  

Order for the column in its collection at design-time

  property Field: TField; [rw]

  

Field in the Dataset associated with this Column

published

  property FieldName: string; [rw]

  

Name of the Field with data for the column

  property DisplayFormat: string; [rws]

  

The format to be used for display in this column

Inheritance

TColumn

  

Implements a display column for the TDBGrid control

|

TGridColumn

  

TGridColumn - a column of similar data items in a grid

|

TCollectionItem

?

TObject

Description

TColumn is a TGridColumn descendant which implements a display column for the TDBGrid grid control. TColumn extends the ancestor class to provide support for using TField for data access, display formatting, alignment, as well as use of checkbox and lookuplist Fields. TColumn also implements support for features in TDBGrid like: automatic rows, and design-time vs run-time column ordering.

TColumn is the class type used for items in the TDBGridColumns collection.

See also

#lcl.DBGrids.TDBGridColumns

  

Implements a collection for columns in a database grid

#lcl.DBGrids.TCustomDBGrid.Columns

  

Columns provides access to columns defined for the database grid control

#lcl.Grids.TGridColumn

  

TGridColumn - a column of similar data items in a grid

#fcl.DB.TField

#fcl.DB.TDataset

The latest version of this document can be found at lazarus-ccr.sourceforge.net.