Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NavigateData
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
01229205
Message ID:
01232139
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform