Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a calculated column in DataGrid?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00894709
Message ID:
00894821
Vues:
7
>If lets say I have a column for Product’s price and another column for Quantity, I want to calculate the total price for my product and summarized it in a column named Total Price. How to add those columns in DataGrid?

The easiest way to do this is to create a column in the DataSet that contains this information (this encapsulates your business logic within your business object). The easiest way to do this is to add the column in your SQL statement.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform