Class TDBGridsPropSave

Unit

Declaration

type TDBGridsPropSave = class(TCustomPropSave)

Description

provides re/storing properties of TDBGrid & TDataset components

Hierarchy

Overview

Fields

Public SavedDBColumnFieldList: TStrings;

Methods

Public function CanSave(Comp: TComponent): boolean; override;
Public function GetColumnKey(const Key: string; Idx: integer): string;
Public function GetFieldKey(const Key: string; Idx: integer): string;
Public function ReadDBColumnList(PSFile: TPropSaveFile; const Key: string): integer;
Public procedure SaveDBColumn(PSFile: TPropSaveFile; const Key: string; C: TColumn; Idx: integer; IsCustomized: boolean = true);
Public procedure ReadDBColumn(PSFile: TPropSaveFile; const Key: string; C: TColumn; Idx: integer);

Properties

Published property StoreColumns: boolean read FStoreColumns write FStoreColumns default true;
Published property StoreColumnsProp: boolean read FStoreColumnsProp write FStoreColumnsProp default false;
Published property EraseUnusedSection: boolean read FEraseUnusedSection write FEraseUnusedSection default true;

Description

Fields

Public SavedDBColumnFieldList: TStrings;

list of saved DBColumns

Methods

Public function CanSave(Comp: TComponent): boolean; override;

returns whether re/storing of Components from parameter is supported by TDBGridsPropSave

Public function GetColumnKey(const Key: string; Idx: integer): string;

returns key for column specified by Idx

Public function GetFieldKey(const Key: string; Idx: integer): string;

returns key for field specified by Idx

Public function ReadDBColumnList(PSFile: TPropSaveFile; const Key: string): integer;

fill list of saved DBColumns

Public procedure SaveDBColumn(PSFile: TPropSaveFile; const Key: string; C: TColumn; Idx: integer; IsCustomized: boolean = true);

store one DBColumn to PSFile

Public procedure ReadDBColumn(PSFile: TPropSaveFile; const Key: string; C: TColumn; Idx: integer);

read and restore one DBColumn from PSFile

Properties

Published property StoreColumns: boolean read FStoreColumns write FStoreColumns default true;

define whether columns position and width is re/stored

Published property StoreColumnsProp: boolean read FStoreColumnsProp write FStoreColumnsProp default false;

define whether columns properties (fonts, color, alignmetn...) is re/stored

Published 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.