Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a DataGrid to Nav
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00814378
Message ID:
00814517
Views:
11
Brian,

>I’m using a datagrid bound to a BizObject (oContactList) to navigate records I have a 2nd BizObj (oContacts) that is a child of oContactlist. When the form open’s Life is good<g>. The child(oContact) has the right record, the 1st one in the list and all the controls that are bound to it are displaying the data I expect. That said here’s the problem.
>When I click on a different row in the grid that is bound to oContactList I was expecting oContact to Fire the HookParentNavigated sub of the child BO. It does not.
>
>Any suggestions?

You need to specify the grid as the form's navigation control for these events to fire. For example in C#:
this.NavControl = this.grdOrders;
And in Visual Basic .NET:
Me.NavControl = Me.grdOrders
See the MM .NET Developer's Guide topic "Adding a Navigation Toolbar to your Forms" for details (although you are not required to use a navigation toolbar!).

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