这个效果需要指定 OnDrawCell 事件。
procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol,
ARow: Integer; Rect: TRect; State: TGridDrawState);
var
S: string;
R: TRect;
begin
S := StringGrid1.Cells[ACol, ARow];
R := Rect;
with StringGrid1 do
begin
DrawText(Canvas.handle, PChar(S), -1, @R, DT_WORDBREAK);
end;
end;