🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

DBGRID display order with indexes

#5508
From: Jeffrey D. Warsaw
Date: Thu, 26 Apr 2001 21:04
12 lines
1813 bytes
I created a table using interbase that has a PRIMARY KEY consisting of a
field named "symbol" that is a VARCHAR (8) and "price" that is DOUBLE
PRECISION.  I then created a non unique DESCENDING index on the "price"
field because I want the records to be displayed in DESCENDING price
order.  I then created a Builder 3 application with a TTable,
TDataSource and TDBGrid attached to this interbase table and set the
index to the DESCENDING index described above.  My problem is that the
grid seems to display the records in PRIMARY KEY order no matter what I
do.  Is it possible to get the TDBGrid to display the records in a
particular order other than PRIMARY KEY order?  Are these type of
indexes only relevant for traversing the table using the ->first(),
->next(), etc. methods?
Technical Details
Message-ID: <3AE88D4E.F0D36F89@CompuServe.Com>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!blackbush.xlink.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!t-online.de!skynet.be!fr.clara.net!heighliner.fr.clara.net!news.mat.cc!out.nntp.be!propagator-dallas!news-in-dallas.newsfeeds.com!news.bnb-lp.com!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,1873b4865e742632,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-04-26 14:13:51 PST
Message-ID: <3AE88D4E.F0D36F89@CompuServe.Com>
Date: Thu, 26 Apr 2001 17:04:14 -0400
From: "Jeffrey D. Warsaw" <JeffreyDWarsaw@CompuServe.Com>
Organization: Temple University
X-Mailer: Mozilla 4.61 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: DBGRID display order with indexes
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 155.247.182.88
X-Trace: dnews 988318800 155.247.182.88 (26 Apr 2001 14:00:00 -0700)
Lines: 12
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!blackbush.xlink.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!t-online.de!skynet.be!fr.clara.net!heighliner.fr.clara.net!news.mat.cc!out.nntp.be!propagator-dallas!news-in-dallas.newsfeeds.com!news.bnb-lp.com!dnews