Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a calculated column in DataGrid?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00894709
Message ID:
00894821
Views:
6
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform