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

# TGridColumn.IsDefault

Indicates if default layout settings are used for the grid column.

## Declaration

Source position: grids.pas line 604

`public function TGridColumn.IsDefault: Boolean; virtual;`

## Function result

True if the column uses its default settings.

## Description

IsDefault is a Boolean function used to determine if the grid column uses default values in properties used to layout and configure the class instance. The return value is True when all of the following conditions are met:

- Alignment is unassigned (Nil).
- Color is unassigned (Nil).
- ReadOnly is unassigned (Nil).
- Width is unassigned (Nil).
- Layout is unassigned (Nil).
- MaxSize is unassigned (Nil).
- MinSize is unassigned (Nil).
- SizePriority is unassigned (Nil).
- IsDefaultFont returns True.
- Title uses default settings.

IsDefault is used during LCL component streaming to determine whether items in the Columns collection need to be included in the resource stream when the private WriteColumns method is called.

## See also

TGridColumns.IsDefault |  | True if the columns contain default values only.
TCustomGrid.Columns |  | Definitions for the columns displayed the grid.