?
Solved

grid view total on each row and column

Posted on 2008-10-14
4
Medium Priority
?
443 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 1500 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

Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

762 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