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

TDBGrid.Columns

Defines the dataset fields and their editing characteristics on the grid control.

Declaration

Source position: dbgrids.pas line 602

published property TDBGrid.Columns : TDBGridColumns;

Description

Refers to the physical columns of the grid displaying the contents of the relevant Fields.

The Columns property is configurable from the Object Inspector selecting the ellipsis (...) next to the property name in which case a pop-up memo box appears to allow editing. It deals with things like the size shape and format of the display and contains a link to the appropriate Field.

Do not confuse Grid columns (in the display) with the SQL usage of COLUMNS (Fields in our environment). The Fields consist of a series of cells arranged in Records which contain the actual data which are to be displayed and operated upon.

It is entirely possible that Fields in the dataset are not displayed, and the result is that Field order in a dataset may not correspond directly to the column order in a database grid; in fact the Columns property allows the user to configure which data Field is to be displayed in each column.

See also

TCustomGrid.Columns

  

Definitions for the columns displayed the grid.


Version 3.2 Generated 2024-02-25 Home