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 1072 korisnika na forumu :: 66 registrovanih, 8 sakrivenih i 998 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: A.R.Chafee.Jr., arsa, BLACKBIRD201284, Boris BM, boromir, Bosnjo, boxbole, crazydkure, dak2, DalmatinacMF, dekan.m, dmrdc, ElGenius, ElvisP, Gargamel008, HrcAk47, ivan1973, ivran064, jackreacher011011, Jakonjveliki, jarovitt, kaskadija, Koridor, Kubovac, KUZMAR, ljuba.b, lord sir giga, LUDI, macoromiso, MarkoD, markoni.slo, Marky, MB120mm, Milan A. Nikolic, mnn2, Natuzzi, nekdo, Orc, Orijen, Papadubi, Parker, Peruta, Pilence, Plavi Jadran, Pohovani_00, rajkoplje, raptorsi, Rogan33, sale76, Samo gledam, Saša1989, Smajser, stagezin, stefan95, Str2022, Tribal, Trpe Grozni, UAV operator, Vatreni Zmaj, Vlada78, voja64, zeka013, Zerajic, zlatkoa987, Zoran1959, 79693