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 1862 korisnika na forumu :: 87 registrovanih, 6 sakrivenih i 1769 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 4719 - dana 07 Dec 2025 13:00

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: Aristotle2002, Asteker, babaroga, bbogdan, bbrasnjo3, Belac91, blue, Bobrock1, Boris90, boromir, Borski1977, BORUTUS, CVOJ 410.lad PVO, d.arsenal321, damirZR, darkdruid72, dekiz, Denaya, Despot Đurađ, doktor097, doom83, dusanobr, Dzoni2412, Feller, Filip1, Georgius, Gogi do, goxin, Holy Saber, istokzapad, Jan, jodzula, Jose, Još malo pa deda, Kamov, komsija1, konstruktor, kovacicbozo, kunktator, laki_bb, Lelemood, ljubo70, lord sir giga, Marko Marković, metallac777, milutin134, Mitogna, Mićko, mnn2, Natuzzi, opt1, Panter, PlayerOne, procesor, promajauglavi, RajkoB, raketaš, rakivan, razumihin, Rebel Frank, repac, Romibrat, Sale0501, sasics, Sass Drake, SD izvidjac, Sevetar, shlauf, Sioux7674, Smiljkovich, srbijaiznadsvega, stalja, tomo2, Tribal, Trpe Grozni, TRZH92, varda, Vatreni Zmaj, Vlada1389, vuk77, vukajlo71, wizzardone, XBMC, yrraf, ZlatniRez, Žrnov, šakalakazu