Solved

grid view total on each row and column

Posted on 2008-10-14
4
436 Views
Last Modified: 2013-11-26
Hello experts I have a grid view in my aspx page and I want to show the total of each row at the right side of grid view and the total of each column at the bottom of grid view, please guide me how to achieve this task

                                            total (row)
1             2               1           4
3             3               3           9

4             5               4  total(column )  
0
Comment
Question by:alirezakaveh
  • 2
4 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 22709753
For the total of the columns:
CodeSnip: How to Display Sum Total in the Footer of the GridView Control
http://aspalliance.com/782

For the total of the rows: are you getting the data out of a database ? In that case it will be easier to add the sum of the row in your query and display it in your datagrid
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 22709761
0
 

Author Comment

by:alirezakaveh
ID: 22718648
For the row total I managed to handle it with query to put it in the gridview but for the column total the advised solution will just work for on one column but I want to add the total of all column at the bottom of its relevant column    
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now