2020年5月16日

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

摘要: 示例: if Key = 13 then //回車後跳到下一格 with TDbgrideh(ActiveControl) do begin if Selectedindex < (FieldCount - 1) then Selectedindex := Selectedindex + 1 els 阅读全文

posted @ 2020-05-16 16:08 癫狂编程 阅读(252) 评论(0) 推荐(0)

在 DBGrid 中如何让回车变为光标右移动

摘要: 在Form.OnKeyPress事件中写如下代码: if Key = #13 then if ActiveControl = DBGrid1 then begin TDBGrid(ActiveControl).SelectedIndex := TDBGrid(ActiveControl).Selec 阅读全文

posted @ 2020-05-16 15:49 癫狂编程 阅读(161) 评论(0) 推荐(0)

导航

好的代码像粥一样,都是用时间熬出来的