How to replace the field type and value in dbgrid?

How to replace the field type and value in dbgrid?

offline
  • Pridružio: 02 Apr 2018
  • Poruke: 1

How to replace the field type and value in dbgrid?

My SQL query:

Code: XML [Select] DBForm.DBquery.SQL.text:='select callstart, callend, origin, destination, direction from callrecord;

termtype are integer values 0...3, instead I would like to show in dbgrid column fields: None, Incoming, Outgoing or Internal, accordingly. These text values are not stored in any DB table to be joined with; it is also not allowed to add smth to this DB (in my case). Is there a way how to do this "on fly", when the dbgrid obtains the values from the DB?



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
Ko je trenutno na forumu
 

Ukupno su 3300 korisnika na forumu :: 51 registrovanih, 10 sakrivenih i 3239 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 20624 - dana 04 Apr 2026 04:18

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: -III-, 04bokibole, 8u47, aleksmajstor, bbogdan, boracbl1389, d.arsenal321, Džekson, Giskard, goran.vvv, gregorxix, hatman, igorkozar83, Ikica977, ivan_8282, Jose, K a s p e r, K-1A, KimiMR, kovac9mm, Lep1na, Makarid, Marko Marković, Marko1238, Medojed, mile.ilic75, mirkoro, nebkv, nemkea71, nenad81, nerislav2025, orah, Parker, Pauljxxx, RD84, S-G, S.Palestinac, shaja1, shlauf, shone34, simazr, sluga, sslay, stefan95, Tihi86, Topcider, Tumansky, VanZan, yiyi, Zastava, zule2