TColumn class
Implements a display column for the TDBGrid control.
Declaration
TColumn = class(TGridColumn)Inheritance
Description
TColumn is a
TGridColumn descendant that represents a
display column in a database grid control. TColumn extends the ancestor class
to provide support for using TField for data access, display formatting,
alignment, as well as use of check box and lookup list Fields. TColumn also
implements support for features in TDBGrid like: automatic rows, and
design-time vs run-time column ordering.
TColumn provides properties and methods needed to access and maintain the Dataset, Field, FieldName, and DisplayFormat for the column. TColumn provides overridden functions which implement facilities from the ancestor class.
TColumn instances can be created at run-time or design-time; properties are provided to indicate when the instance was created. The display order for columns need not correspond to the order of the Fields in the dataset, nor do all Fields in the dataset need to be represented by a display column.
TColumn instances are used as the collection item for the
TDBGridColumns collection.
See also
Properties
IsAutomaticColumn | protected | Indicates if the column was automatically added at run-time. |
IsDesignColumn | protected | Indicates if the column was added at design-time. |
DesignIndex | public | Order for the column in its collection at design-time. |
Field | public | Field in the Dataset associated with this Column. |
FieldName | published | Name of the Field with data for the column. |
DisplayFormat | published | The format to be used for display in this column. |
Methods
CreateTitle | protected | Creates the title used for the grid column. |
GetDefaultAlignment | protected | Gets the default alignment for the Field in the column definition. |
GetDefaultDisplayFormat | protected | Gets the default display format for the Field in a column. |
GetDefaultValueChecked | protected | Gets the default value for a check box in the Checked state as a String. |
GetDefaultValueUnchecked | protected | Gets the default String value for a check box in the UnChecked state. |
GetDefaultVisible | protected | Indicates if the Field for the column is Visible. |
GetDisplayName | protected | Gets the display name for the collection item. |
GetDefaultReadOnly | protected | Gets the default value for the ReadOnly property. |
GetDefaultWidth | protected | Gets the effective width for the column. |
GetPickList | protected | Gets the values in the pick list for the column. |
LinkField | protected | Establishes a link between the FieldName and the Field in a Dataset. |
Create | public | Constructor for the TColumn instance. |
Assign | public | Stores properties from a persistent class in the current class instance. |
IsDefault | public | Indicates if the column uses its default display format. |
Inherited
From TGridColumn (37)
Alignment AllColumnsChange ButtonStyle Color ColumnChanged DefaultWidth Destroy DropDownRows Expanded FillDefaultFont FixDesignFontsPPI Font GetDefaultColor GetDefaultLayout GetDefaultMaxSize GetDefaultMinSize GetDefaultSizePriority GetValueChecked GetValueUnchecked Grid IsDefaultFont Layout MaxSize MinSize PickList ReadOnly ScaleFontsPPI SetIndex SizePriority StoredWidth Tag Title ValueChecked ValueUnchecked Visible Width WidthChanged
From TCollectionItem (9)
Changed Collection DisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName
From TPersistent (5)
AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
