P
Peter M.
Hi all,
If an event has multiple subscribers, is it possible to cancel the
invocation of event handlers from an event handler?
Or to be more specific:
I'm subscribing to the ColumnChanging event of a datatable, from two
seperate classes. I wish to do some data validating. Due to the nature of
the data validation being done, I seperated this code in two classes.
When the value changes, as expected, both event handlers are being invoked.
However, if the first validation rejects the data, the second handler really
shouldn't be invoked anymore. I would like to cancel the remaining handler
invocations.
Is this (easily) possible?
Thanks.
If an event has multiple subscribers, is it possible to cancel the
invocation of event handlers from an event handler?
Or to be more specific:
I'm subscribing to the ColumnChanging event of a datatable, from two
seperate classes. I wish to do some data validating. Due to the nature of
the data validation being done, I seperated this code in two classes.
When the value changes, as expected, both event handlers are being invoked.
However, if the first validation rejects the data, the second handler really
shouldn't be invoked anymore. I would like to cancel the remaining handler
invocations.
Is this (easily) possible?
Thanks.