Article View: borland.public.cppbuilder.database.ado
Article #2171Re: TADOTable Out of Order
From: Viatcheslav V. Vassiliev
Date: Fri, 31 Oct 2003 17:17
Date: Fri, 31 Oct 2003 17:17
32 lines
1871 bytes
1871 bytes
You may use indexes defined in DBMS (inside Jet database) only if CursorLocation=clUseServer and TableDirect=True. //------------------------------------------ Regards, Viatcheslav V. Vassiliev http://www.managed-vcl.com http://www.oledbdirect.com "Robert Emmons" <remmons@aurigen.com> ???????/???????? ? ???????? ?????????: news:1vv4qvcl4irnt8ln5t1p31ge0cshk96s6s@4ax.com... > I have a TADOTable (Tbl) in a Jet database with the following fields: > > ID1 > Date > ID2 > Data > > The PrimaryKey is ID1, Date, ID2. I display the table in a TDBGrid, > and set: > > DataSource->DataSet->Tbl->Active = true > DataSource->DataSet->Tbl->IndexName = PrimaryKey > > Nevertheless, the table appears in order by ID1, ID2, Date instead of > by ID1, Date, ID2. If I display the table with Microsoft Access, it > appears properly in PrimaryKey order. > > How can I get the table to appear in proper order in the TDBGrid? >
Technical Details
Message-ID:
<3fa29917$1@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-mailReferences:
<1vv4qvcl4irnt8ln5t1p31ge0cshk96s6s@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,b4ab9cb102f7ab18 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-10-31 09:39:49 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <1vv4qvcl4irnt8ln5t1p31ge0cshk96s6s@4ax.com> Subject: Re: TADOTable Out of Order Date: Fri, 31 Oct 2003 20:17:07 +0300 Lines: 34 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: <3fa29917$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067620631 213.234.218.42 (31 Oct 2003 09:17:11 -0700) 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