Vcl.DBCtrls.TDBMemo.DataSource
Delphi
property DataSource: TDataSource read GetDataSource write SetDataSource;
C++
__property Data::Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TDBMemo |
Description
Links the memo control to the dataset that contains the field for which the memo control displays data.
Link the memo control with a dataset by setting DataSource to a data source component that identifies the desired dataset. Specify which field in the dataset contains the memo data using the DataField property.
DBMemo1.DataSource := DataSource1;
DBMemo1->DataSource = DataSource1;