Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Popup Form
Message
 
To
27/08/2004 17:14:25
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
00937192
Message ID:
00937884
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform