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

TCustomGrid.ColCount

Number of columns in the grid.

Declaration

Source position: grids.pas line 1228

protected property TCustomGrid.ColCount : Integer
  read GetColCount
  write SetColCount
  default 5;

Description

ColCount is an Integer that represents the number of columns in the grid, including fixed and normal columns. Changing the value in ColCount after Columns have been created causes an EGridException to be raised. Use the Columns collection to add or delete columns defined in the grid.

Use FixedCols for the number of fixed columns in the grid.

Use VisibleColCount for the number of non-fixed columns in the grid.

Use RowCount, FixedRows, and VisibleRowCount to access the row-oriented equivalents.

Errors

Raises an EGridException when the value is changed and Columns already exist in the grid.

See also

TCustomGrid.FixedCols

  

The number of fixed columns in the grid.

TCustomGrid.FixedRows

  

Number of the fixed rows in the grid.

TCustomGrid.Columns

  

Definitions for the columns displayed the grid.

TCustomGrid.RowCount

  

Number of rows in the grid.

TCustomGrid.VisibleColCount

  

The number of visible columns in the grid control.

TCustomGrid.VisibleRowCount

  

The number of visible rows in the grid control.

TGridPropertyBackup

  

Stores data about rows and columns used in a TCustomGrid class instance.

EGridException

  

Exception raised when an error has occurred in a Grid class.


Version 3.2 Generated 2024-02-25 Home