Class TrDBGridsPropSave

Unit

Declaration

type TrDBGridsPropSave = class(TDBGridsPropSave)

Description

provides re/storing properties of TrDBGrid, TrDBGrid_MS & TrDBRecView components

Hierarchy

Overview

Methods

Public function CanSave(Comp: TComponent): boolean; override;
Public function GetCellParamKey(const Key: string; Idx: integer): string;
Public procedure ReadCellParamsCondList(PSFile: TPropSaveFile; const Key: string; CondList: TCellParamsCondList);
Public procedure SaveCellParamsCondList(PSFile: TPropSaveFile; const Key: string; CondList: TCellParamsCondList);
Public procedure ReadFilterSetting(SG: TrDBGrid; KeySuffix: string = '');
Public procedure SaveFilterSetting(SG: TrDBGrid; KeySuffix: string = '');

Properties

Published property StoreFieldsGroup: boolean read FStoreFieldsGroup write FStoreFieldsGroup default false;
Published property StoreFooterRow: boolean read FStoreFooterRow write FStoreFooterRow default false;
Published property StoreFilterSetting: boolean read FStoreFilterSetting write FStoreFilterSetting default false;
Published property StoreDesignSetting: boolean read FStoreDesignSetting write FStoreDesignSetting default false;
Published property OnReadSaveProps: TReadSavePropsEvent read FOnReadSaveProps write FOnReadSaveProps;

Description

Methods

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

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

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

returns key for cellparam specified by Idx

Public procedure ReadCellParamsCondList(PSFile: TPropSaveFile; const Key: string; CondList: TCellParamsCondList);

read CellParamsCondList from PSFile

Public procedure SaveCellParamsCondList(PSFile: TPropSaveFile; const Key: string; CondList: TCellParamsCondList);

store CellParamsCondList to PSFile

Public procedure ReadFilterSetting(SG: TrDBGrid; KeySuffix: string = '');

read Filter setting for grid

Public procedure SaveFilterSetting(SG: TrDBGrid; KeySuffix: string = '');

store Filter setting for grid

Properties

Published property StoreFieldsGroup: boolean read FStoreFieldsGroup write FStoreFieldsGroup default false;

define whether fields group definition is re/stored

Published property StoreFooterRow: boolean read FStoreFooterRow write FStoreFooterRow default false;

define whether Footer setting is re/stored

Published property StoreFilterSetting: boolean read FStoreFilterSetting write FStoreFilterSetting default false;

define whether Filter setting is re/stored

Published property StoreDesignSetting: boolean read FStoreDesignSetting write FStoreDesignSetting default false;

define whether design setting is re/stored

Published property OnReadSaveProps: TReadSavePropsEvent read FOnReadSaveProps write FOnReadSaveProps;

event is called after read/store of DBGrid props


Generated by PasDoc 0.15.0.