Sign in Join
Wiki copytemporary

TDataSource/ja: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: TDataSource/ja

OldNewLine
1+**TDataSource** ![](/wiki-images/8/83/Tdatasource.png)はデータベースを表す[[TDataSet/ja]]に基づいたコンポーネントと[[TDBGrid/ja]]といったデータコントロールを仲介する。
2+
3+典型的には`TDataSource`は`TSQLQuery`や、他の`TDataSet`の派生に接続するフィールド「DataSet」を含む。DataSourceはTDBGridや他のデータコントロールコンポーネントの「DataSource」に接続されるべきである。
4+
5+` SQLTransaction1.Database := SQLConnection1;`\
6+` SQLQuery1.Transaction := SQLTransaction1;`\
7+` `**`DataSource1`**`.DataSet := SQLQuery1;`\
8+` DBGrid1.DataSource := `**`DataSource1`**`;`
9+
10+## 以下も参照のこと
11+
12+- [[doc:fcl/db/tdatasource.html|TDataSource doc]]
13+- [[TSQLTransaction/ja]]
14+- [[TSQLQuery/ja]]
15+
16+---
17+*From the Free Pascal wiki, page "TDataSource/ja", as it stood on 2024-03-31 after a change by Ariben, 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](/wiki-contact).*

Back to history