Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculated fields and entities
Message
From
19/06/2007 10:29:53
Duncan Mcdonald
Canadian Natural Resources Ltd
Calgary, Alberta, Canada
 
 
To
19/06/2007 00:02:56
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Vista
Miscellaneous
Thread ID:
01234158
Message ID:
01234266
Views:
19
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...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform