Vcl.Grids.TCustomGrid.DefaultColWidth

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DefaultColWidth: Integer read FDefaultColWidth write SetDefaultColWidth default 64;

C++

__property int DefaultColWidth = {read=FDefaultColWidth, write=SetDefaultColWidth, default=64};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TCustomGrid

Description

Determines the width (in pixels) of all columns that have not been explicitly resized.

Set DefaultColWidth to change the size of all columns in the grid. When DefaultColWidth is set, columns that have been resized using the mouse or by setting the ColWidths property are given the DefaultColWidth as well.

When new columns are added to the grid using the ColCount property, they are created with a width of DefaultColWidth.

See Also

Code Examples