Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NavigateData
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
01229205
Message ID:
01232139
Vues:
18
Sarosh,

>Read the article on the BindingContext but it seems that all this works only in a Form so my question is if we are processing BO's (parent-child) and I want to go through all child rows for a given Parent BO how do we do this outside the context of a form?

In Windows Forms the BindingContext manager keeps track of the current DataRow--DataTables don't have the concept of a current DataRow--so that's why the logic lives in the form.

If you want to iterate through all child rows in a child business object you can access the child business object's DataSet property and find the DataTable you want. Honestly, though I question the need to do this. A child business object should go through its own data.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform