RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomSQLDataSet.DataSource Property

Links the SQL dataset to another (master) dataset.

Pascal
property DataSource: TDataSource;
C++
__property TDataSource DataSource;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!