TDataSource
English · Français · Русский · 日本語
TDataSource
is a component that mediates communication between a TDataSet based component that represents the database contents and Data Controls like TDBGrid.
Typically, a TDataSource contains a field 'DataSet' that connects to a TSQLQuery or other TDataSet descendant. The DataSource should connect to the 'DataSource' field of a TDBGrid or other Data Control component.
SQLTransaction1.Database := SQLConnection1;
SQLQuery1.Transaction := SQLTransaction1;
DataSource1.DataSet := SQLQuery1;
DBGrid1.DataSource := DataSource1;See also
From the Free Pascal wiki, page "TDataSource", as it stood on 2017-06-14 after a change by E-ric, 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.
Edited on wiki.freepascal.org by 3 people, 2014–2017
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| Arent | Created page | |
| Arent | ||
| Arent | ||
| Mike.cornflake | Freepascal Documentation: Fixed hyperlink (minor) | |
| Arent | ||
| Arent | ||
| Arent | ||
| Arent | ||
| Arent | ||
| E-ric | (minor) |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
