[英]How To Get Old & New value from BindingSource in C#
I want to know how to use BindingSource
to get the old and new value from a GUI form. 我想知道如何使用
BindingSource
从GUI表单获取旧值和新值。 I'm Using BindingSource
in my C# and now I want to fire updateLog
SP. 我在C#中使用
BindingSource
,现在我想启动updateLog
SP。
So how do I know what field has been update, its new new value and its old value? 那么,我怎么知道哪个字段已更新,新值和旧值呢?
You can try to watch the ListChanged event of the BindingSource. 您可以尝试观看BindingSource的ListChanged事件。 The associated event handler takes a parameter, named ListChangedEventArgs that contains OldIndex and NewIndex properties that you may use
关联的事件处理程序采用名为ListChangedEventArgs的参数,该参数包含您可以使用的OldIndex和NewIndex属性
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.