Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dialog Forms
Message
De
12/07/2004 12:19:18
Del Despain
Colorado Plateau Associates
Hurricane, Utah, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
00917063
Message ID:
00923389
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform