开发者

Is there any way in BindingSource to know the values changes?

开发者 https://www.devze.com 2023-01-23 20:30 出处:网络
I\'m using a BindingSource in a windows forms application, there ar开发者_如何学JAVAe many controls was bound with a BindingSource.

I'm using a BindingSource in a windows forms application, there ar开发者_如何学JAVAe many controls was bound with a BindingSource.

I don't want to monitor the controls to get the changes, can I know if a value changed from the BindingSource by an event?

I looked for an event in it, but I didn't find.

Thanks in advance.


You can use the BindingSource.ListChanged event.

The ListChanged event occurs when there is a change to the membership or metadata of the underlying list represented by the List property. For example, this event is raised when items are added, removed, or moved, or the DataSource or DataMember properties change.

0

精彩评论

暂无评论...
验证码 换一张
取 消