Class TDBGridsPropSave
Unit
PropSaveGrids
Declaration
type TDBGridsPropSave = class(TCustomPropSave)
Description
provides re/storing properties of TDBGrid & TDataset components
Hierarchy
Overview
Fields
Methods
Properties
|
property StoreColumns: boolean read FStoreColumns write FStoreColumns default true; |
|
property StoreColumnsProp: boolean read FStoreColumnsProp write FStoreColumnsProp default false; |
|
property EraseUnusedSection: boolean read FEraseUnusedSection write FEraseUnusedSection default true; |
Description
Fields
|
SavedDBColumnFieldList: TStrings; |
list of saved DBColumns
|
Methods
|
function CanSave(Comp: TComponent): boolean; override; |
returns whether re/storing of Components from parameter is supported by TDBGridsPropSave
|
|
function GetColumnKey(const Key: string; Idx: integer): string; |
returns key for column specified by Idx
|
|
function GetFieldKey(const Key: string; Idx: integer): string; |
returns key for field specified by Idx
|
|
function ReadDBColumnList(PSFile: TPropSaveFile; const Key: string): integer; |
fill list of saved DBColumns
|
|
procedure SaveDBColumn(PSFile: TPropSaveFile; const Key: string; C: TColumn; Idx: integer; IsCustomized: boolean = true); |
store one DBColumn to PSFile
|
|
procedure ReadDBColumn(PSFile: TPropSaveFile; const Key: string; C: TColumn; Idx: integer); |
read and restore one DBColumn from PSFile
|
Properties
|
property StoreColumns: boolean read FStoreColumns write FStoreColumns default true; |
define whether columns position and width is re/stored
|
|
property StoreColumnsProp: boolean read FStoreColumnsProp write FStoreColumnsProp default false; |
define whether columns properties (fonts, color, alignmetn...) is re/stored
|
|
property EraseUnusedSection: boolean read FEraseUnusedSection write FEraseUnusedSection default true; |
define whether unused sections (columns with higher index) are deleted during reads
|
Generated by PasDoc 0.15.0.
|