EditMode:=True;Options--goEditing:=True;

解决方案 »

  1.   

    先Options--goEditing:=True;
    再在它的OnKeyPress写(比如有5列):
    procedure TForm1.StringGrid1KeyPress(Sender: TObject; var Key: Char);
    begin
      if (StringGrid1.Col = 1) then
        key := #0;
    end;
      

  2.   

    CanSelect := (ARow <> 1);
    第一行不能选中,,我想也不能编辑吧?????
      

  3.   

    EditMode:=True; 
    Options--goEditing:=True; 
    这样就可以了。
      

  4.   

    Options--goEditing:=True;
    我来晚了,不过我还是要说说,
    应该是这样的:
    options 是枚举类型的所以
    options=option+[goediting];
    然后就可以对立面的格子赋值了
    如 stringgrid1.cell[1,1]='hello the word!'
      

  5.   

    哪儿有CanSelect?哪儿有EditMode?我怎么找不到?