Sign in Join
Wiki copytemporary

TDataSource/ru

English · Français · Русский · 日本語

Компонент TDataSource является посредником между компонентом TDataSet, представляющим собой содержимое базы данных, и компонентами Data Controls, такими как TDBGrid.

Обычно, компонент TDataSource содержит поле DataSet, которое связано с TSQLQuery или другим потомком TDataSet. Компонент DataSource должен подключаться к полю DataSource компонента TDBGrid или другого компонента Data Controls.

pascal
 SQLTransaction1.Database := SQLConnection1;
 SQLQuery1.Transaction := SQLTransaction1;
 DataSource1.DataSet := SQLQuery1;
 DBGrid1.DataSource := DataSource1;

См. также


From the Free Pascal wiki, page "TDataSource/ru", as it stood on 2018-02-04 after a change by Useroflazarus, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.