Max,
>1) When the controls instantiate they display data from the first row in the dataset no matter which is the current row in the grid. How does one synchronize these?
>
>2) When I edit the data in the controls it does not seem to update the business object. The edits are not reflected in the child grid. This is true even if I pass the business object to the popup form constructor by reference.
>
>Can someone please give me a pointer here?
Rather than using the business object on the main form, I recommend you do the following:
1. In the Click handler for the Edit button, get the PK of the grid's current row (you can get this by calling the mmDataGrid GetCurrentRowPK method.
2. Instantiate your popup form and pass the PK in the constructor of the form
3. Add a new instance of the business object to your popup form and create a new method (if you don't already have one) that can accept the PK and retrieve the desired record.
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