Data.DB.TDataSource.DataSet

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TDataSource

Delphi

property DataSet: TDataSet read FDataSet write SetDataSet;

C++

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

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