Board index » delphi » DBGrid / Display records
V. Bernhardt
![]() Delphi Developer |
Fri, 04 Oct 2002 03:00:00 GMT
|
V. Bernhardt
![]() Delphi Developer |
Fri, 04 Oct 2002 03:00:00 GMT
DBGrid / Display records
Hello,
I have to display records of a Paradox table "in inverted order" in a DBGrid But now, when I edit a field, and then ask for the next record, instead of So how can I display records "in inverted order", and still navigate Valerie. |
M.H. Avegaar
![]() Delphi Developer |
Fri, 04 Oct 2002 03:00:00 GMT
Re:DBGrid / Display recordsHave you tried a TQuery like: SELECT * "V. Bernhardt" <geocons...@wanadoo.fr> schreef in bericht Quote> Hello, |
V. Bernhard
![]() Delphi Developer |
Fri, 04 Oct 2002 03:00:00 GMT
Re:DBGrid / Display recordsNo, but it's a DBGrid that is used to create data, not just display them, so a TQuery isn't the best solution I guess ? I can't insert records in a TQuery ? Anyway, I'll think about it. Valerie. M.H. Avegaart <avega...@NOSPAMmccomm.nl> a crit dans le message : Quote> Have you tried a TQuery like: |
M.H. Avegaar
![]() Delphi Developer |
Sat, 05 Oct 2002 03:00:00 GMT
Re:DBGrid / Display recordsYes, you can. You should either set RequestLive to True or, if that is not possible, set UpdateObject to a new TUpdateSQL. "V. Bernhardt" <geocons...@wanadoo.fr> schreef in bericht Quote> No, but it's a DBGrid that is used to create data, not just display them, |
Paul Ferrar
![]() Delphi Developer |
Sat, 05 Oct 2002 03:00:00 GMT
Re:DBGrid / Display recordsA DBGrid simply displays the contents of the underlying table or query. Whatever order the records are in, that's how they'll display. As to your original question, perhaps the descending index you created isn't Paul / ColumbuSoft QuoteV. Bernhardt <geocons...@wanadoo.fr> wrote in message Quote> No, but it's a DBGrid that is used to create data, not just display them, |
V. Bernhard
![]() Delphi Developer |
Sat, 05 Oct 2002 03:00:00 GMT
Re:DBGrid / Display recordsThe descending index is the active one. It's when I set the descending index to the active one that navigation in the DBGrid started to become "odd". Valerie. Paul Ferrara <p...@nospam.columbusoft.com> a crit dans le message : Quote> A DBGrid simply displays the contents of the underlying table or query. |
V. Bernhard
![]() Delphi Developer |
Sat, 05 Oct 2002 03:00:00 GMT
Re:DBGrid / Display recordsI'll try it. Thank you. Valerie. M.H. Avegaart <avega...@NOSPAMmccomm.nl> a crit dans le message : Quote> Yes, you can. You should either set RequestLive to True or, if that is not |
Paul Ferrar
![]() Delphi Developer |
Sat, 05 Oct 2002 03:00:00 GMT
Re:DBGrid / Display recordsIf you're using a TQuery, that's your problem since you can't specify which index (if any) it will use. In that case use the Order By clause. Paul / ColumbuSoft QuoteV. Bernhardt <geocons...@wanadoo.fr> wrote in message Quote> The descending index is the active one. |
V. Bernhard
![]() Delphi Developer |
Sun, 06 Oct 2002 03:00:00 GMT
Re:DBGrid / Display recordsThank you for your answers. No, I don't use a TQuery. I use a TTable. But answers to my question say I should try with a TQuery. So I'll have a try because that's the only solution that was suggested to me. Valerie. Paul Ferrara <p...@nospam.columbusoft.com> a crit dans le message : Quote> If you're using a TQuery, that's your problem since you can't specify |
1. Colour coding DBGrid Records and controlling Field Display Size
2. Getting the current record displayed in a DBGrid?
3. why DBGrid cannot display New Insert record?
4. duplicate record displayed on dbgrid
5. Displaying record numbers in DBGrid..
6. duplicate record displayed on dbgrid
7. DBGrid with TQuery loses the record from the display
8. DBGrid:1 record inserted, duplicate display ??
9. DBExpress and displaying multiple records (eg like in DBGrid)