Solved

grid view total on each row and column

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

805 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