1:给EDIT 焦点 edit1.setfocus;
2:edit 的 keypress 事件, 
保存, stringgrid1.cells[you_col,you_row]:=edit1.text;
好了

解决方案 »

  1.   

    1.Edit1.SelectAll
    2.OnKeyPress
       if key=#13 then
       dosomething
      

  2.   

    给出错误提示‘cannot focus a disable or invisable window’是怎么回事?
      

  3.   

    你的Edit.Parants?=StringGrid
      另外你应先Edit.Show一下
      

  4.   

    你先要把edit设为可见的和使能的,
    既enable, visible := true,
    才能去设置焦点!
      

  5.   

    Edit1.SelectAll好像不行
                  不过提醒一下在SetFocus之前先赋予Edit值
      

  6.   

    2:edit 的 keypress 事件, 
    保存, stringgrid1.cells[you_col,you_row]:=edit1.text;
    好了 
      if key=#13 then 
        begein
        you_dosomething;
        end;
      

  7.   

    to byrybye(BYRY) 
      可是我不知道我的col,row 啊