🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: DBGrid one more time ?

#3618
From: Vassiliev V.V.
Date: Fri, 19 Jul 2002 08:17
32 lines
1964 bytes
You can not put something in DBGrid. You should update corresponding
TDataset field. You may use

DBGrid1->DataSource->DataSet->Edit();
DBGrid1->Columns->Items[3]->Field->AsString = Query;
DBGrid1->DataSource->DataSet->Post();

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

"Uros Obradovic" <ouros@hotmail.com> �������/�������� � �������� ���������:
news:3d37051f$1_1@dnews...
> Ok, I understand this part how to work w/ SQL statement and queries. What
I
> don't understand is how to put that in DBGrid column.
>
> I'll probably write some non-sence in here, but hopefully you'll
understand
> what I'm trying to do
>
> DBGrid1->Columns->Items[3]->AsString = Query;
>
> where Items[3] should be the third column where I want to put result of
the
> query previously defined.
> How can I do that ?
>
> Thx
> Uros
>
>
Technical Details
Message-ID: <3d37cf8d_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!64.152.100.70.MISMATCH!ps01-sjc1!news.webusenet.com!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3d35d23e$1_2@dnews> <3D368607.5BE075A6@callcom.no> <3d37051f$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,b0601243ddb1b151
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-07-19 01:47:06 PST
From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3d35d23e$1_2@dnews> <3D368607.5BE075A6@callcom.no> <3d37051f$1_1@dnews>
Subject: Re: DBGrid one more time ?
Date: Fri, 19 Jul 2002 12:17:34 +0400
Lines: 34
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.139.199
Message-ID: <3d37cf8d_1@dnews>
X-Trace: dnews 1027067789 62.118.139.199 (19 Jul 2002 01:36:29 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!64.152.100.70.MISMATCH!ps01-sjc1!news.webusenet.com!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!dnews