你可以为每个字段设置OnSetText事件,这样在输入完后回车会移动时就会触发,或者在adoquery的beforepost中或afterpost中都可以grid也提供了一些事件,也可以在某些条件下做这个事情 每个字段的onupdatedata设置一下呀, procedure Tjhd.DBGridEh1Columns8UpdateData(Sender: TObject; var Text: String; var Value: Variant; var UseText, Handled:…
$("#textSel").change(funtion(){ var selVal=$(this).val(); var selText=$("#textSel option:selected").text(); var otherAttr=$("#textSel option:selected").attr("..."); });…
TextBox 编辑框 When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following order: Enter GotFocus LostFocus Leave Validating Validated--------------------- Cell单元格 第一种顺序,即不进行Cell编辑的情况下: CellEnter-发生于 D…