Hola.
Había entendido que querías de un color las celdas de valor menor al mediodia y de otro las que eran despues.
Si se trata de pintar sólo las de valor menor sería:
Código Delphi
[-]
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
with Sender as TDBGrid do
begin
if Column.Field.FieldName = 'Hora_de_Entrada' then
if Frac(Column.Field.AsDateTime) < 0.5 then
Canvas.Brush.Color := clMoneyGreen;
DefaultDrawColumnCell(Rect, Datacol, Column, State);
end;
end;
Saludos.