procedure Tfrmclerktable.StringGrid1DrawCell(Sender: TObject; ACol,
  ARow: Integer; Rect: TRect; State: TGridDrawState);
if acol=2 and arow=2 then
begin
StringGrid1.Canvas.Textout(rect.left,rect.top+5,'你');
StringGrid1.Canvas.Textout(rect.left,rect.top+20,'好');
end ;
end;

解决方案 »

  1.   

    procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
      Rect: TRect; State: TGridDrawState);
    begin
    if (acol=2) and (arow=2) then
    begin
    StringGrid1.Canvas.Textout(rect.left+10,rect.top,'你');
    StringGrid1.Canvas.Textout(rect.left+10,rect.top+15,'好');
    end ;
    end;
      

  2.   

    请问如何使StringGrid中的单元格中文字的水平或垂直方向?什么意思啊?
      

  3.   

    StringGrid 的可操作性不是很强。
      

  4.   

    有比StringGrid好用的Grid吗?