user2804390
user2804390

Reputation:

Control property is Collection. How to add change event when the collection changes?

I'm using a 3rd party control and one of it's property is an object collection. I would like to launch a change event when this collection changes. I've read about BindingList, but I don't know how-to (if possible) override the type of the 3rd party control property. Any clue?

Upvotes: 0

Views: 62

Answers (1)

dutzu
dutzu

Reputation: 3910

Since it's not under your control, because it's 3rd party code, you cannot override it. Unless the control offers this capability.

You should check if the control offers an event of it's own, otherwise, looking at it as a black box, all you can do is polling (checking at a given interval of time the collection, with a timer)

Upvotes: 1

Related Questions