Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Initializing BizObj with DataGridView
Message
 
To
05/07/2007 10:51:57
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01237948
Message ID:
01238155
Views:
12
Jeff,

>I am allowing my user to enter data in a DataGridView. I also have code in the HookSetDefaultValues() event of the business object. What is the preferred method for calling the initialization code when a new row is added to the grid?

If you are allowing your users to add a new row by pressing the down arrow, then Microsoft hasn't provided a convenient hook to allow you to call the HookSetDefaultValues since you are bypassing the business object and creating the new data directly in the UI. Otherwise, you can add a New button to your form and specify the business object in the BindingSource property and it will automatically populate your default values.

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