| Subject | Re: [IBO] OnDrawCell handler | 
|---|---|
| Author | lester@lsces.globalnet.co.uk | 
| Post date | 2000-11-28T16:20:54Z | 
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
}
}
}
}
}
            { 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
}
}
}
}
}