Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
I have a parent and a child BO on a form. The form needs to take some actions after the child BO has navigated, so in the Navigated event of the child BO, I'm referencing a control. However, I'm getting an error that the control doesn't exist (the reference is nothing) and after much head banging, I realized that this is being run during InitializeComponent! Most likely the control hasn't even been initialized yet. The child BO is configured to have the parent BO and the parent is configured to MatchCurrentRow. I thought I had to manually load BOs during load or in the constructor (after InitializeComponent), and now I find the child is loading during InitializeComponent. What's up? BTW, I have simular needs in the parent BO, which is working just fine.
|