🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #4024

Re: How to show Query result in a DBGrid?

#4024
From: Vassiliev V.V.
Date: Sun, 21 Apr 2002 08:29
23 lines
1599 bytes
Add ADOQuery to form. Set ConnectionString and SQL properties. Set Active
property to true.
Add TDataSource (from Data Access panel) to form. Set its DataSet property
to ADOQuery1.
Add TDBGrid (from Data Controls) to form. Set its DataSource property to
DataSource1.
That's all.

Regards,
Vassiliev V.V.
http://www.oledbdirect.com

"M. Noroozi Eghbali" <galaxy@irandoc.ac.ir> �������/�������� � ��������
���������: news:3cc1160f_2@dnews...
> Hi,
>
> How can I show the result of a SQL command of a ADOQuery to a DGGrid or
any
> suchlike component?
>
> Thanks,
>
>
Technical Details
Message-ID: <3cc2793a_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!proxad.net!proxad.net!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3cc1160f_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,f0bbaab356ee5e9f
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-04-21 01:38:43 PST
From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3cc1160f_2@dnews>
Subject: Re: How to show Query result in a DBGrid?
Date: Sun, 21 Apr 2002 12:29:03 +0400
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 62.118.129.238
Message-ID: <3cc2793a_1@dnews>
X-Trace: dnews 1019377978 62.118.129.238 (21 Apr 2002 01:32:58 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!proxad.net!proxad.net!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews