Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetDataSet and FillDataSet
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00861487
Message ID:
00861685
Vues:
20
Patrick,

>I found out that I had to call 1m AFTER 2m, or the Contract object used in the Contract DataGrid has the wrong DataSet.
>
>But... Should I just have created another Contract object instance?
>
>I just need the data, you know, for a DropDownList. Is there a database-independent way of using the appropriate mmDataAccessXXX FillDataSet() to return an arbitrary DataSet from a business object method so that it doesn't set the DataSet of the business object? Or is this wrong-headed OOP thinking?

Probably the best way to approach this is to fill two different data tables within the business object's DataSet. You can call FillDataSet from each business object method, using the overload of FillDataSet that allows you to specify the name of the data table to fill. Then, in the control's binding source member properties, specify the appropriate table name.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform