SimpleDS.TInternalSQLDataSet.DataSource

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DataSource: TDataSource read GetDataSource write SetDataSource;

C++

__property DataSource;

Properties

Type Visibility Source Unit Parent
property published
SimpleDS.pas
SimpleDS.hpp
SimpleDS TInternalSQLDataSet

Description

Links the SQL dataset to another (master) dataset.

SimpleDS.TInternalSQLDataSet.DataSource inherits from Data.SqlExpr.TCustomSQLDataSet.DataSource. All content below this line refers to Data.SqlExpr.TCustomSQLDataSet.DataSource.

Links the SQL dataset to another (master) dataset.

DataSource links this SQL dataset to another (master) dataset that supplies values for this dataset's parameters.

When the SQL dataset's CommandText (or SQL) property specifies a parameterized query but the application does not provide values for the corresponding parameters in the Params property, the SQL dataset fetches parameter values from the dataset identified with the specified data source. When the current record in the dataset associated with DataSource changes, the SQL dataset refreshes its data to reflect the new parameter values.

See Also