首页 > 数据库技术 > 详细

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

时间:2020-05-16 17:23:33      阅读:74      评论:0      收藏:0      [点我收藏+]

示例:

 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中用代码实现按回车键跳到下一格的方法

原文:https://www.cnblogs.com/jijm123/p/12900927.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!