Class TCustomrDBGrid_MSUDB

Unit

Declaration

type TCustomrDBGrid_MSUDB = class(TrDBGrid_MS)

Description

TrDBGrid_MS descendant with possibility to load/show/edit records from any SQL command

Hierarchy

  • TrDBGrid_MS
  • TCustomrDBGrid_MSUDB

Overview

Methods

Protected procedure Loaded; override;
Protected procedure Notification(AComponent: TComponent; Operation: TOperation); override;
Public procedure ReloadData;

Properties

Public property ListDataSet: TQueryIntList read FListDataSet;
Public property ListDataSource: TDataSource read FListDataSource;
Published property ListSQL: TStrings read FListSQL write SetListSQL;
Published property ListConnection: TCustomConnectionUDB read FListConnection write SetListConnection;
Published property ListAutoLoad: boolean read FListAutoLoad write FListAutoLoad default true;
Published property ListSQLTryNow: boolean read FListSQLTryNow write SetListSQLTryNow default false;
Published property OnGetListSQL: TGetSQLEvent read FOnGetListSQL write FOnGetListSQL;
Published property ListDataSetReadOnly: boolean read FListDataSetReadOnly write FListDataSetReadOnly default false;
Published property OnListDataSetEvent: TDataSetEvent read FListDataSetEvent write SetListDataSetEvent;

Description

Methods

Protected procedure Loaded; override;
 
Protected procedure Notification(AComponent: TComponent; Operation: TOperation); override;
 
Public procedure ReloadData;

open SQL command and refresh Grid content

Properties

Public property ListDataSet: TQueryIntList read FListDataSet;

return internal Dataset to allow reading of fields

Public property ListDataSource: TDataSource read FListDataSource;

return internal Datasource to allow using for other DB components

Published property ListSQL: TStrings read FListSQL write SetListSQL;

define SQL command

Published property ListConnection: TCustomConnectionUDB read FListConnection write SetListConnection;

define UDB connection

Published property ListAutoLoad: boolean read FListAutoLoad write FListAutoLoad default true;

define whether ReloadData is called automatically after loading

Published property ListSQLTryNow: boolean read FListSQLTryNow write SetListSQLTryNow default false;

try to open SQL command in design time

Published property OnGetListSQL: TGetSQLEvent read FOnGetListSQL write FOnGetListSQL;

call before opening of SQL to allow update command or set WHERE condition

Published property ListDataSetReadOnly: boolean read FListDataSetReadOnly write FListDataSetReadOnly default false;

define whether internal dataset is read only (editing is not allowed)

Published property OnListDataSetEvent: TDataSetEvent read FListDataSetEvent write SetListDataSetEvent;

define event for internal dataset (BeforeOpen, BeforePost... After... ses TDataSetEventTypes


Generated by PasDoc 0.15.0.