M
moondaddy
I wrote my own List class which I use to bind to list controls. this class
inherits CollectionBase and implements IBindingList. This class contains a
list of business classes such as customers for example. In the customer
class I have an event called MyTestEvent and when certain conditions arise,
I want to raise this event which would cause an event to fire in the List
class. How can this be done when I don't actually declare the customer
class in the List class like this:
Private WithEvents Cust as Customer
Customers are created and added to the List class like this
Dim obj As New Customer
obj.LoadDataRow(dr, ds.tbCustomer)
list.Add(obj)
In short, how do I wire up events from each Customer in the list object?
Thanks.
inherits CollectionBase and implements IBindingList. This class contains a
list of business classes such as customers for example. In the customer
class I have an event called MyTestEvent and when certain conditions arise,
I want to raise this event which would cause an event to fire in the List
class. How can this be done when I don't actually declare the customer
class in the List class like this:
Private WithEvents Cust as Customer
Customers are created and added to the List class like this
Dim obj As New Customer
obj.LoadDataRow(dr, ds.tbCustomer)
list.Add(obj)
In short, how do I wire up events from each Customer in the list object?
Thanks.