Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement