🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Retrieving data from a DBGrid

#2242
From: Harold Howe [TeamB]
Date: Fri, 12 Sep 2003 01:46
13 lines
1541 bytes
Lee wrote:

> OK, here is what I am trying to do.  I have a DBGrid filled using
> ADODataSet.  I would like to report the value cell 1,1 to a ShowMessage box.
> Is there a way I can do that?

Most data access is done via the dataset. Navigate the dataset to the 
correct row, and then access the correct field by index or name.

If you need to work with the grid in this manner, you may want to use a 
StringGrid and fill it manually. Then you can use the Cells property.

h^2
Technical Details
Message-ID: <3f61251c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f598f5b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,a382ef8e54bd4579
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-09-11 18:46:12 PST
Date: Thu, 11 Sep 2003 20:46:20 -0500
From: "Harold Howe [TeamB]" <hhowe@bcbdev.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Retrieving data from a DBGrid
References: <3f598f5b$1@newsgroups.borland.com>
In-Reply-To: <3f598f5b$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 12.205.145.46
Message-ID: <3f61251c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063331100 12.205.145.46 (11 Sep 2003 18:45:00 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail