Article View: borland.public.cppbuilder.database.multi-tier
Article #294TClientDataSet and OnGetText
From: Mark Di Val
Date: Fri, 01 Nov 2002 05:12
Date: Fri, 01 Nov 2002 05:12
20 lines
1610 bytes
1610 bytes
I am using a TClientDataSet as an in memory table. I display this data in a
DBGrid and attempt to hide null (or zero) dates using the fields OnGetText
handler - like so:
void __fastcall TfrmVaultExamine::cdsVaultSegmentsFinishedAtGetText(
TField *Sender, AnsiString &Text, bool DisplayText)
{
double dt = Sender->Value;
if (DisplayText && dt == 0)
Text = "";
}
Doing this however causes entire column to be blank.
Does anyone know how to effect blanking in certain cells?
TIA
Mark
Technical Details
Message-ID:
<3dc20d4f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,43e857a94a7a83e3,start X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2002-10-31 21:34:00 PST Reply-To: "Mark Di Val" <mark_di_val@rta.nsw.gov.au> From: "Mark Di Val" <mark_di_val@smartchat.net.au> Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: TClientDataSet and OnGetText Date: Fri, 1 Nov 2002 16:12:48 +1100 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 NNTP-Posting-Host: 210.10.176.209 Message-ID: <3dc20d4f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1036127567 210.10.176.209 (31 Oct 2002 21:12:47 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail