🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Count the displayed records in a DBGrid?

#3036
From: Alen Markov
Date: Wed, 01 Jan 2003 21:31
20 lines
1578 bytes
I'd like to count the displayed records in the DBGrid, how to do that?
(I need something like "DBGrid->RowCount();" )

/*
I can find out the total available entries for example with something like:

int iRecords;
iRecords = DBGrid1->DataSource->DataSet->RecordCount

But let's say after a simple SQL statement only a few hits are displayed
in my DBGrid - how to find out how many rows are displayed?
*/

Thanks a lot in advance

Best regards
Alen

--
WEB: http://www.come.to/nostromo
Technical Details
Message-ID: <3e135e45@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!newsxfer.visi.net!66.250.146.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,4b4f4179108ae557,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-01-01 13:33:46 PST
Reply-To: "Alen Markov" <NOSPAM_amarkov@gmx.net>
From: "Alen Markov" <NOSPAM_amarkov@gmx.net>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Count the displayed records in a DBGrid?
Date: Wed, 1 Jan 2003 22:31:29 +0100
Lines: 22
Organization: NOSTROMO
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 80.218.79.120
Message-ID: <3e135e45@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1041456709 80.218.79.120 (1 Jan 2003 13:31:49 -0800)
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!newsxfer.visi.net!66.250.146.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail