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 963 korisnika na forumu :: 36 registrovanih, 9 sakrivenih i 918 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3028 - dana 22 Nov 2019 07:47

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: A.R.Chafee.Jr., amaterSRB, Apok, babaroga, Bloody, Bov80, croato, Drug pukovnik, Džordžino, gile58, goxin, GrM, h8propaganda, HDMI, ILGromovnik, krunomiletic5, madza2, MarKhan, MB120mm, Milos ZA, mnn2, perica5, Polemarchoi, Rakenica, RJ, ruma, Sr.Stat., stegonosa, Toni, vasa.93, vlvl, VP3987, wizzardone, zdrebac2, zlaya011, Zmaj001