General information
Category:
The Mere Mortals .NET Framework
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...
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only