操作dbgrid有一点不方便,在输入错误时候跳转到,下一列中,我想怎样能实现类是窗体上别的控件那样,activecontrol=???
  x谢谢

解决方案 »

  1.   

    saveplace:Tbook;  with qry do begin
        saveplace:=GetBook;
        try
          try
            Requery;
            GotoBook(saveplace);
          except on EOleException do Last;
          end;
        finally FreeBook(saveplace);
        end;
      end;
    是不是要这样啊
      

  2.   

    dbgrid1.SelectedField :=yourfiled;
      dbgrid1.SelectedIndex:=yourfieldindex;
      两种都可以