🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
1 messages
1 total messages Started by Mark Di Val Fri, 01 Nov 2002 05:12
TClientDataSet and OnGetText
#294
Author: Mark Di Val
Date: Fri, 01 Nov 2002 05:12
20 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads