好眼熟的问题,
这样试试:
procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
var
r:trect;
begin
if (acol=1) {and (arow=1)} then
begin
r:=rect;
stringgrid1.canvas.FillRect(rect);
r.Top:=r.top+12;
drawtext(stringgrid1.Canvas.handle,pchar(stringgrid1.cells[acol,arow]),
length(stringgrid1.cells[acol,arow]),r,DT_WORDBREAK);
end;
end;