Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Initializing BizObj with DataGridView
Message
 
À
05/07/2007 10:51:57
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01237948
Message ID:
01238155
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform