我怎么知道用户修改记录的时间? [英] how will i know when a user modifies a record?

查看:83
本文介绍了我怎么知道用户修改记录的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表单上有一堆数据绑定控件。我也有一个modifiedbytextbox。如果用户更改了记录中的任何内容,


modifiedbytextbox.text = s_username。


哪个控制&事件我可以放置那些代码吗?


我试过将它放入......

bindingsource_currentchanged - > nope

bindingsource_currentitemchanged - > nope

bindingsource_listchanged - > nope

i have a bunch of databound controls on my form. and i have a modifiedbytextbox also. if a user changes anything in the record,

modifiedbytextbox.text = s_username.

which control & event can i place that code?

i tried placing it in...
bindingsource_currentchanged --> nope
bindingsource_currentitemchanged --> nope
bindingsource_listchanged --> nope

推荐答案

用户如何修改记录?



如何用户修改记录?
How the user modifies a record ?



感谢您的回复。我知道我可以在我的表单上的每个boundtextbox上使用textchanged。但我想知道是否有类似的东西...


如果bindingsource.isedited那么

''日志修改为

结束如果

thank you for replying. i know i can use the textchanged on every boundtextboxes i have on my form. but i was wondering if there is something like...

if bindingsource.isedited then
''log modified by
end if


最好使用编辑选项。


当用户点击编辑时,他们可以更改内容在这里你可以设置修改它的用户。
It will be better to use an Edit option.

When the user clicks on edit only then they can make changes to the content and here you can set which user modified it.


这篇关于我怎么知道用户修改记录的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆