I have the following code to paint the cells in a dbgrid with a condition function DrawDataCell
if table.FieldByName if ('XXX'). Value = 'XX' then
begin
DBGrid1.Canvas.Font.Color: = clBlack;
DBGrid1.Canvas.Brush.Color: = clRed;
DBGrid1.Canvas.Font.Style: = [fsBold];
end;
DBGrid1.DefaultDrawDataCell (Rect, Field, State);
In a standard Delphi DBGrid it works normally. In the component TsDBGrid (AlphaD:cool: cells are not painted. How can I do this?