下面的代码供你参考:Q. DBGrid中如何让回车变为光标右移动A. 在Form.OnKeyPress事件中写如下代码:if Key = #13 then
if ActiveControl = DBGrid1 then begin
TDBGrid(ActiveControl).SelectedIndex :=
TDBGrid(ActiveControl).SelectedIndex + 1;
Key := #0;
end;
if ActiveControl = DBGrid1 then begin
TDBGrid(ActiveControl).SelectedIndex :=
TDBGrid(ActiveControl).SelectedIndex + 1;
Key := #0;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货