各位大哥帮小弟一个忙!在dbgrid中编辑数据时如果不是最后一列,按回车键由跳到下一列,如果是最后一列则插入一条记录,光标跳到下一行的第二列。 怎么没人应声是不是分太少了,要分我可以给你呀! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 dbgird1.onkey事件if key=#13 then begin if dbgrid1.selectedindex<table1.fieldcount-1 then dbgrid1.selectedindex:=dbgrid1.selectedindex+1 else begin table1.next; dbgrid1.selectedindex:=1; endend delphi sql嵌套查询 @和^等特殊符号详解? 光标如何从括号里跳到下一行 关于DateTimePicker,如何使它能自动获得每月的最小值和最大值 请问有哪位做过文件搜索程序? 如何动态的弹出和已有窗体一样(包括窗体内部空件)。 如何自由拖动按钮? 如何进行远端连接? 请问WebBrowser1.OleObject.document.all.item(Edit1.Text, 0)为什么不可以用变量呢? 如何让mxOutLookBarPro显示大图标 请指点!真的很难呀!分数可以随便要700分以内的。谁要多少分可以注名。 我是菜鸟,我什么也不懂。
if key=#13 then
begin
if dbgrid1.selectedindex<table1.fieldcount-1 then
dbgrid1.selectedindex:=dbgrid1.selectedindex+1
else
begin
table1.next;
dbgrid1.selectedindex:=1;
end
end