[Overview][Types][Classes][Procedures and functions][Index] |
Refers to the physical columns of the grid, displaying the contents of the relevant Fields
Source position: dbgrids.pas line 476
published property TDBGrid.Columns; |
Refers to the physical columns of the grid, displaying the contents of the relevant Fields
The Columns property is configurable from the Object Inspector by 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 no confuse Grid columns (in the display) with the SQL usage of COLUMNS, which corresponds to 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 not all fields of the dataset are displayed, and so fields do not correspond directly to columns; in fact the Columns property allows the user to configure which data field is to be displayed in each column