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

# TGridColumns

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

TGridColumns - the group of columns in the grid

## Declaration

Source position: grids.pas line 537

`type TGridColumns = class(TCollection)`
`protected`
`function GetOwner; override;`
`procedure Update(); override;` |  |
`procedure TitleFontChanged;` |  | TitleFontChanged - method to deal with a change in title font
`procedure FontChanged;` |  | FontChanged - method to deal with a change in font for the columns
`procedure RemoveColumn();` |  | RemoveColumn - method to remove the specified column
`procedure MoveColumn(); virtual;` |  | MoveColumn from the first index to the second
`procedure ExchangeColumn();` |  | ExchangeColumn - exchange the position of the current column with the specified other column
`procedure InsertColumn();` |  | InsertColumn with the specified index
`public`
`constructor Create();` |  | Create - constructor for TGridColumns: calls inherited Create then loads the grid
`function Add;` |  |
`procedure Clear;` |  |
`function RealIndex();` |  | RealIndex - the proper index for this column
`function IndexOf();` |  | IndexOf this column
`function IsDefault;` |  | IsDefault returns True if this is the default column
`function HasIndex();` |  | HasIndex - returns True if the current column has an index value
`function VisibleIndex();` |  | VisibleIndex - the index value of a visible column
`property Grid: TCustomGrid; [r]` |  | The Grid to which the current collection of columns belongs
`property Items: TGridColumn; default; [rw]` |  | Items - the list of columns in this collection
`property VisibleCount: Integer; [r]` |  | VisibleCount - the number of visible columns
`property Enabled: Boolean; [r]` |  | If True, the columns are Enabled
`end;`

## Inheritance

`TGridColumns` |  | TGridColumns - the group of columns in the grid
`TCollection`
`TPersistent`
`TObject`

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