当前位置:Gxlcms > 数据库问题 > 在DBGrid中用代码实现按回车键跳到下一格的方法

在DBGrid中用代码实现按回车键跳到下一格的方法

时间:2021-07-01 10:21:17 帮助过:14人阅读

示例:

 if Key = 13 then //回車後跳到下一格
    with TDbgrideh(ActiveControl) do
    begin
      if Selectedindex < (FieldCount - 1) then
        Selectedindex := Selectedindex + 1
      else
      begin
        dbgrideh.DataSource.DataSet.Next;
        Selectedindex := 0;
      end
    end;
————————————————

在DBGrid中用代码实现按回车键跳到下一格的方法

标签:ted   active   dash   next   selected   data   select   else   end   

人气教程排行