Expert: Sorting a DBGrid from an Access Db via ADO
From: Pontus Berg (pontus_at_berg.to)
Date: 08/19/04
- Next message: Del Murray: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Previous message: Del Murray: "Re: PRBLM: Multi-ADO connections on one DataModule"
- Next in thread: Del Murray: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Reply: Del Murray: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Reply: Brian Bushay TeamB: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 19 Aug 2004 00:44:23 +0200
Howdy!
I'm not managing to get a sorted GBGrid view of a Access 2003 database, via
ADO.
The DB connection is an ADOConnection with a client side cursor. I use a
ADODataSet, with the command text "SELECET * from <my table in the DB
file>". Again, static client cursor. A fully normal DBGrid connects to the
ADODataSet via a DataSource.
I have trapped the click of the column headers and placethe relevant field
names in the ADODataSet.IndexFieldNames but the field is a lookup field, so
this operation won't work. (Placing some other field works nicely, but not
the lookup field).
Is there any EASY way around this to actually sort a DBGrid based on a field
which is of the Lookup kind?
/Pontus
- Next message: Del Murray: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Previous message: Del Murray: "Re: PRBLM: Multi-ADO connections on one DataModule"
- Next in thread: Del Murray: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Reply: Del Murray: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Reply: Brian Bushay TeamB: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|