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

TCustomGrid.Columns

The properties of the columns in this grid

Declaration

Source position: grids.pas line 996

protected property TCustomGrid.Columns: TGridColumns
  read GetColumns
  write SetColumns
  stored IsColumnsStored;

Description

The Columns property of a grid refers to the physical column in the table, and determines its size, shape, colour etc. It should not be confused with the COLUMNS construct frequently used in SQL programming, which refers to Fields of data. The contents of Fields can be displayed as Columns in a Grid, but they must be seen as separate and distinct. It is irrelevant to refer to the colour, font or width of a data field from a database, but these are all very relevant in specifying the appearance of a column in a grid.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.