Z zpselect Unregistered / Unconfirmed GUEST, unregistred user! 2006-06-26 #1 在DBGrideh1的某任一列中,按Enter健之后,光标移置该列的下一笔之录?请问如何实现?功能实现之后立即给分!
L lmxcyx Unregistered / Unconfirmed GUEST, unregistred user! 2006-06-26 #2 在Form.OnKeyPress事件中写如下代码: if Key = #13 then if ActiveControl = DBGrid1 then begin TDBGrid(ActiveControl).SelectedIndex := TDBGrid(ActiveControl).SelectedIndex + 1; Key := #0; end;
在Form.OnKeyPress事件中写如下代码: if Key = #13 then if ActiveControl = DBGrid1 then begin TDBGrid(ActiveControl).SelectedIndex := TDBGrid(ActiveControl).SelectedIndex + 1; Key := #0; end;
Z zpselect Unregistered / Unconfirmed GUEST, unregistred user! 2006-07-05 #3 哈哈,樓上的,你做錯了! 應該是:if key=#13 then ADOQuery.next; 就這麼簡單!
F fsse4000 Unregistered / Unconfirmed GUEST, unregistred user! 2006-07-05 #5 我晕,DBGridEh不是有个属性, 在OptionsEh里,将dghEnterAsTab设置为True
Z zpselect Unregistered / Unconfirmed GUEST, unregistred user! 2006-07-26 #7 應該是這樣的: if not ADODataSet.eof then if Key = vk_return then ADODataSet.next ekse key=0;