Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculated fields and entities
Message
De
19/06/2007 10:29:53
Duncan Mcdonald
Canadian Natural Resources Ltd
Calgary, Alberta, Canada
 
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Vista
Divers
Thread ID:
01234158
Message ID:
01234266
Vues:
18
This message has been marked as the solution to the initial question of the thread.
Hi Craig.

Your approach of adding the Calculated property to the entity class will work if you explicitly bind to the Entity. E.G.


myDataGridView.DataSource = Me.myBizObj.CreateEntityList(Of myBizObjEntity)()

The CreatEntityList function uses generics to build a strongly-typed list based on your dataset (so you'll need to first retrieve the data). If you step through your code after binding, you'll see that changes are happening through your entity properties, and if you change your base property values, your calculated property should also be updated.

Anyway, I hope this helps and sorry for the VB Code - somebody has to be keeping it alive. Have a great day...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform