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

# TCustomGrid.CreateColumns

Allocates and configures resources for the Columns collection.

## Declaration

Source position: grids.pas line 1013

`protected function TCustomGrid.CreateColumns: TGridColumns; virtual;`

## Function result

TGridColumns instance created in the method.

## Description

CreateColumns is a TGridColumns function used create a new TGridColumns instance for the grid control. TGridColumn is the class type used for items stored in the collection.

CreateColumns is called from the Create constructor, and the return value is assigned to the member used for the Columns property.

## See also

TCustomGrid.Create |  | Constructor for the class instance.
TCustomGrid.Columns |  | Definitions for the columns displayed the grid.
TGridColumns |  | Collection used to store column definitions for a grid control.
TGridColumn |  | Implements a column definition used for tabular data in TCustomGrid.