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

# TCustomGrid.ColWidthsChanged

Performs actions needed when the widths for grid columns have been changed.

## Declaration

Source position: grids.pas line 1012

`protected procedure TCustomGrid.ColWidthsChanged; virtual;`

## Description

ColWidthsChanged has an empty implementation in TCustomGrid. It is not currently used in any descendent classes in the LCL. It can be overridden in custom controls to perform any actions needed when one or more of the column widths has been changed. One common use is to invalidate the grid control and cause it to be redrawn.

ColWidthsChanged is called when a new value is specified for the indexed ColWidths property and Columns have been enabled for the control.

## See also

TCustomGrid.ColWidths |  | Provides indexed access to the Width for a column in the grid.
TCustomGrid.DefaultColWidth |  | Default width used for grid columns.
TCustomGrid.Columns |  | Definitions for the columns displayed the grid.