Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding textbox, grid column etc to derived property
Message
De
08/05/2007 06:38:46
 
 
À
08/05/2007 06:35:09
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01223307
Message ID:
01223308
Vues:
14
Forgot to mention that adding a calculated column to the dataset might be the way to go, but not good enough to get the back end to calculate the field as it needs to be accurate for newly-entered rows that haven't been saved yet.

Of course a "total" field like this is only an example: I can foresee lots of uses for derived fields.

Also one alternative for grid columns would be to override the CellFormatting event, and calculate on the fly, but this seems really kludgey. Using a calculated property like this is so elegant, just doesn't work.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform