[Overview][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TColumn - one of the physical columns of the display in a DataBase Grid (not necessarily the same as a Column in a SQL database)
Source position: dbgrids.pas line 210
type TColumn = class(TGridColumn) |
||
protected |
||
function CreateTitle; override; |
|
CreateTitle - creates a column title and returns it in the result |
function GetDefaultAlignment; override; |
|
GetDefaultAlignment - returns the supplied alignment if valid, otherwise returns the inherited default |
function GetDefaultDisplayFormat; |
|
GetDefaultDisplayFormat - returns a string containing the default format for display |
function GetDefaultValueChecked; override; |
|
GetDefaultValueChecked - if the value of the checked item is boolean, returns the boolean expressed as a string |
function GetDefaultValueUnchecked; override; |
|
GetDefaultValueUnchecked - if the value of the unchecked item is boolean, returns the boolean expressed as a string |
function GetDefaultVisible; override; |
|
GetDefaultVisible - returns the default value for the Visible property |
function GetDisplayName; override; |
|
GetDisplayName - if a field has been assigned, return the name of the field otherwise calls inherited GetDisplayName |
function GetDefaultReadOnly; override; |
|
GetDefaultReadOnly - if a grid or field have been assigned, gets the default readonly property from the link, otherwise calls inherited GetDefaultReadOnly |
function GetDefaultWidth; override; |
|
GetDefaultWidth - looks to see if a grid with canvas has been allocated, and gets width from there, otherwise uses global defaut width |
function GetPickList; override; |
|
GetPickList - calls inherited GetPickList, then if there are additional items, adds them before returning |
property IsAutomaticColumn: Boolean; [r] |
|
IsAutomaticColumn - if True, this is an automatic column |
property IsDesignColumn: Boolean; [r] |
|
IsDesignColumn - if True, this is a design column |
procedure LinkField; |
|
LinkField - if the data link is Active, form the link with this feild |
public |
||
constructor Create(); override; |
|
Create - constructor for TColumn: calls inherited Create and sets a design index of appropriate size |
procedure Assign(); override; |
|
Assign - if the Source is a Grid, copies relevant values across, otherwise calls inherited Assign |
function IsDefault; override; |
|
IsDefault - returns True if this column is the default |
property DesignIndex: Integer; [r] |
|
DesignIndex - the likely maximum index value |
|
The Field in the DataSet that is to be associated with this Column, for display , editinig etc |
|
published |
||
property FieldName: String; [rw] |
|
The name of the field (as a string), as returned from the dataset |
property DisplayFormat: String; [rws] |
|
The format to be used for display in this column |
end; |
|
TColumn - one of the physical columns of the display in a DataBase Grid (not necessarily the same as a Column in a SQL database) |
|
| | ||
|
TGridColumn - a column of similar data items in a grid |
|
| | ||
| | ||
| | ||
TColumn - one of the physical columns of the display in a DataBase Grid
Each column may display the information held in a Field of the DataSet to which the DBGrid is attached, but the order of appearance of the columns need not correspond to the order in which the Fields exist in the DataSet, nor need all Fields be represented by a Column.
lazarus-ccr.sourceforge.net |