how do I notify child controls of a change in the parent
- by fishhead
what is the best way to keep a child control up to date for changes in the parent.
I have a number of child controls hosted inside my parent object and I can think of two ways to send change information to them.
1) wire the child control to an event in the parent. and fire that event on a change in the parent
2) keep a list of the children in an array and intenerate through the array when the change has happened and invoke a method in the child to handle the new changes.
I hope I describe it okay.
both work but there is probably a right way to handle this and a wrong way.