Solved

grid view total on each row and column

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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