🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.winforms.controls.using
Article #103

Re: About DBGrid

#103
From: Wayne Niddery [TeamB]
Date: Sun, 05 Feb 2006 18:09
15 lines
1785 bytes
Ali wrote:
> Is there any way to change the text of a field in the dbgrid when it
> is reading that field from a query.for example if the content of
> status field is true then dbgrid shows Active. Let me know if it's
> not clear.

Yes, use that field's OnGetText (and if you are allowing editing of the 
field, OnSetText) event to translate between the database values and the 
desired display values.

-- 
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"Reality is that which, when you stop believing in it, doesn't go
away." � Philip K. Dick 
Technical Details
Message-ID: <43e63e99$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!feed10.multikabel.net!feeder1.cambrium.nl!feed.tweaknews.nl!skynet.be!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43e59a19$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,6f3b48b93dfeafcc
X-Google-Attributes: gid1eff29,public
X-Google-Language: ENGLISH,ASCII
Reply-To: "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca>
From: "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca>
Newsgroups: borland.public.delphi.winforms.controls.using
References: <43e59a19$1@newsgroups.borland.com>
Subject: Re: About DBGrid
Date: Sun, 5 Feb 2006 13:09:47 -0500
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 69.17.177.185
Message-ID: <43e63e99$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1139162777 69.17.177.185 (5 Feb 2006 10:06:17 -0700)
X-Authenticated-User: wniddery
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!feed10.multikabel.net!feeder1.cambrium.nl!feed.tweaknews.nl!skynet.be!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail