这个其实很简单啊。
关键这个原理在于,向Cell的Canvas上画出带有颜色的字!
procedure TForm1.AdvStringGrid1DrawCell(Sender: TObject; ACol,
ARow: Integer; Rect: TRect; State: TGridDrawState);
begin
with AdvStringGrid1 do
begin
Canvas.Font.Color := clRed;
Canvas.Brush.Style := bsSolid;
Canvas.TextOut(Rect.Left + 1, Rect.Top + 1, '中华');
Canvas.Font.Color := clBlue;
Canvas.TextOut(Rect.Left + 20, Rect.Top + 1,'人民');
Canvas.Font.Color := clRed;
Canvas.TextOut(Rect.Left + 40, Rect.Top + 1, '共和国');
end;
end;