Open main menu

RAD Studio API Documentation β

Data.DB.TDataSource.DataSet

Delphi

property DataSet: TDataSet read FDataSet write SetDataSet;

C++

__property TDataSet* DataSet = {read=FDataSet, write=SetDataSet};

Properties

Type Visibility Source Unit Parent
property published
Data.DB.pas
Data.DB.hpp
Data.DB TDataSource

Description

Specifies the dataset for which the data source component serves as a conduit to data-aware controls or other datasets.

Set DataSet to the name of an existing dataset component either at design time or at runtime. By changing the value of DataSet at runtime, an application can effectively use the same data-aware controls to display and edit data in different datasets.

DataSource.DataSet := ClientDataSet1;

DataSource->DataSet = ClientDataSet1;

Note: To link a dataset that resides in a data module to a form at design-time, choose File

See Also