Solved

grid view total on each row and column

Posted on 2008-10-14
4
440 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

828 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