General information
Category:
The Mere Mortals .NET Framework
>Del,
>
>>Ok, I get a reference to the business object of the parent form and register it as a business object of the dialog form. However, controls on the dialog form show no data until I requery the data via the business object.
>>
>>What am I missing?
>
>If you've already retrieved data at the point where the second form launches, the UI controls on the second form never get a chance to respond to the event that was originally raised when the business object retrieved data on the main form. All you need to do is call the form's BindAllControls method (this code needs to be run after the call to InitializeComponent).
>
This works for all controls except a datagrid, which still won't display the data. I know the grid is set up correctly because it will display correctly if I ask the business object to retrieve the data again (requery). There must be another method or something not being called that applies to the datagrid, but I can't find it.
Thanks!
Del
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only