我用stringGrid显示出了所有的数据,想点其中一个单元格的数据时知道我选的是哪行哪列的,并对他进行修改  谢谢

解决方案 »

  1.   

    procedure TForm1.StringGrid1Click(Sender: TObject);
    begin
      showmessage(stringgrid1.Cells[ stringgrid1.col, stringgrid1.row]);
    end;
      

  2.   

    procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol,
      ARow: Integer; var CanSelect: Boolean);
    begin
      showmessage(inttostr(arow));
    end;
      

  3.   

    都不对,应该是     stringGrid1.Selection.Left
        stringGrid1.Selection.top
      

  4.   

    StringGrid.Cells[ StringGrid.Col, StringGrid.Row]
      

  5.   

    outer2000(天外流星)  is right_____________________________________________________________________暮春三月,羊欢草长,天寒地冻,问谁饲狼?人心怜羊,狼心独怆,天心难测,世情如
    霜……