https://wiki.freepascal.org/index.php?title=TDBGrid/fr&feed=atom&action=history
TDBGrid/fr - Revision history
2024-03-29T08:27:47Z
Revision history for this page on the wiki
MediaWiki 1.35.6
https://wiki.freepascal.org/index.php?title=TDBGrid/fr&diff=133438&oldid=prev
Trev: Fixed syntax highlighting
2020-02-29T04:26:40Z
<p>Fixed syntax highlighting</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 04:26, 29 February 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l3" >Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''TDBGrid''' [[image:tdbgrid.png]] est un composant qui affiche les données d'un [[TDataSet/fr|TDataSet]] sous forme tabulaire. Il est disponible depuis l'[[Data Controls tab/fr|onglet Data Controls]] de la [[Component Palette/fr|palette de composants]].</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''TDBGrid''' [[image:tdbgrid.png]] est un composant qui affiche les données d'un [[TDataSet/fr|TDataSet]] sous forme tabulaire. Il est disponible depuis l'[[Data Controls tab/fr|onglet Data Controls]] de la [[Component Palette/fr|palette de composants]].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><syntaxhighlight></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><syntaxhighlight <ins class="diffchange diffchange-inline">lang=pascal</ins>></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> // configure connection with database</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> // configure connection with database</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> SQLConnector1.ConnectorType := 'MySQL 5.1';</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> SQLConnector1.ConnectorType := 'MySQL 5.1';</div></td></tr>
</table>
Trev
https://wiki.freepascal.org/index.php?title=TDBGrid/fr&diff=111122&oldid=prev
E-ric: Created page with "{{TDBGrid}} '''TDBGrid''' image:tdbgrid.png est un composant qui affiche les données d'un TDataSet sous forme tabulaire. Il est disponible depuis l'Dat..."
2017-07-22T09:35:02Z
<p>Created page with "{{TDBGrid}} '''TDBGrid''' <a href="/File:tdbgrid.png" title="File:tdbgrid.png">image:tdbgrid.png</a> est un composant qui affiche les données d'un <a href="/TDataSet/fr" title="TDataSet/fr">TDataSet</a> sous forme tabulaire. Il est disponible depuis l'Dat..."</p>
<p><b>New page</b></p><div>{{TDBGrid}}<br />
<br />
'''TDBGrid''' [[image:tdbgrid.png]] est un composant qui affiche les données d'un [[TDataSet/fr|TDataSet]] sous forme tabulaire. Il est disponible depuis l'[[Data Controls tab/fr|onglet Data Controls]] de la [[Component Palette/fr|palette de composants]].<br />
<br />
<syntaxhighlight><br />
// configure connection with database<br />
SQLConnector1.ConnectorType := 'MySQL 5.1';<br />
SQLConnector1.HostName := 'MyServer';<br />
SQLConnector1.DatabaseName := 'MyDBName';<br />
SQLConnector1.UserName := 'MyName';<br />
SQLConnector1.Password := 'MyPass';<br />
// connect SQLConnector, SQLTransaction, DataSource, SQLQuery and DBGrid<br />
SQLTransaction1.Database := SQLConnector1;<br />
SQLQuery1.Transaction := SQLTransaction1;<br />
DataSource1.DataSet := SQLQuery1;<br />
DBGrid1.DataSource := DataSource1;<br />
// setup query to get (at least) two fields from MyTable<br />
SQLQuery1.SQL := 'SELECT * FROM MyTable';<br />
// setup grid with result from query<br />
DBGrid1.Columns[0].Title.Caption := 'Name';<br />
DBGrid1.Columns[0].FieldName := 'fieldDescription';<br />
DBGrid1.Columns[1].Title.Caption := 'Description';<br />
DBGrid1.Columns[1].FieldName := 'fieldName';<br />
// Open result and show in grid<br />
SQLQuery1.Open();<br />
</syntaxhighlight><br />
<br />
= Voir aussi =<br />
* [[doc:lcl/dbgrids/tdbgrid.html|Doc. TDBGrid]]<br />
* [[TStringGrid/fr|TStringGrid]]<br />
* [[Grids Reference Page/fr|Grids Reference Page]]<br />
* [[TDataSource/fr|TDataSource]]<br />
<br />
{{LCL Components/fr}}</div>
E-ric