Subject Re: [IBO] OnDrawCell handler
Author lester@lsces.globalnet.co.uk
This is C++ but you should get the idea

{ if ( !ACol || !ARow ) return; // Ignore Top and Left
if( DataList && DataList->Active ) // Check database is open
{ int BufferRowNum = Grid->DataRow[ ARow ];
// Get buffer row attached to this grid row
{ if ( BufferRowNum > 0 )
{ DataList->BufferRowNum = BufferRowNum; // Select same row in
database

int delay = DataList->BufferFieldByName("DELAY")->AsInteger;
// Read data from buffer rather than database
if ( delay < -9 )
AColor = TColor(0x00ff7f7f);
// I am chnaging the colour of the backgrond rather than text
}
}
}
}
}