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

TCustomGrid.ColWidths

Provides indexed access to the Width for a column in the grid.

Declaration

Source position: grids.pas line 1236

protected property TCustomGrid.ColWidths[aCol: Integer] : Integer
  read GetColWidths
  write SetColWidths;

Description

The column is specified with the aCol parameter. The aCol parameter must fall within the valid index range of 0 to ColCount-1.

The property value is the width of the specified column in pixels.

The initial width for a newly created column is specified with the DefaultColWidth property.

If the Options property includes the value goColSizing, the column width may also be changed by the user at run-time.

See also

TCustomGrid.ColCount

  

Number of columns in the grid.

TCustomGrid.DefaultColWidth

  

Default width used for grid columns.

TCustomGrid.RowHeights

  

Provides indexed access to the height for each row in the grid.

TCustomGrid.Options

  

Contains the set of optional features and/or behaviors enabled for the grid control.

TGridOption

  

Represents grid option values available for grid controls.


Version 4.0 Generated 2025-05-03 Home