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

# TGridColumn.GetDefaultColor

Gets the default value for the Color property.

## Declaration

Source position: grids.pas line 578

`protected function TGridColumn.GetDefaultColor: TColor; virtual;`

## Function result

Default value for the Color property in the grid column.

## Description

GetDefaultColor is a TColor function used to get the default value for the Color property in the grid column. The return value is set to the Color property in Grid, when it has been assigned. When Grid contains Nil, the value clWindow is used as the return value.

GetDefaultColor is called when reading the value for the Color property, and the property has not been assigned. It is also called when setting a new value in Color, and determines whether the property member is re-allocated for the new value.

## See also

TGridColumn.Color |  | Color for the background on the column.
TGridColumn.Grid |  | The grid control to which this column belongs.