🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using TADOQuery.

#1769
From: Viatcheslav V. Vassiliev
Date: Tue, 24 Feb 2004 11:41
28 lines
1884 bytes
The same way you place TDataSource and connect DBGrid to it. Set
TDataSource->DataSet to your TADOQuery.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Tuga" <nmp@ispgaya.pt> �������/�������� � �������� ���������:
news:403a5f1a@newsgroups.borland.com...
> Hi every1.
> I usually use BDE to access databases, but now i decided to use ADO
because
> i found ADO more powerfull.
> The problem is that i can't associate the returned resultsets from the
> TADOQuery to a DBGrid.
> With BDE all i need to do is define the DBGrid's DataSource property to
the
> correcponding TDataSource, that automaticaly DBGrid is populated.
> Any sugestions?
>
> Thanks in advance,
> Nuno.
>
>
Technical Details
Message-ID: <403b385e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <403a5f1a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,35eb6daf2621f816
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-02-24 03:52:09 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <403a5f1a@newsgroups.borland.com>
Subject: Re: Using TADOQuery.
Date: Tue, 24 Feb 2004 14:41:20 +0300
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.234.218.42
Message-ID: <403b385e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1077622878 213.234.218.42 (24 Feb 2004 03:41:18 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail