12,064,633 members (25,534 online)
Rate this:
See more:

i am trying for

http://www.gregorylane.com/article.aspx?ID=1

but unable to get the out put

every column has it's own total at bottom cell

same way i was trying

http://blog.codovations.com/2009_05_01_archive.html

but it's providing subtotal in merged way
Posted 5-Feb-13 16:41pm

You need to give us more information on what exactly the problem is as well as post your code samples. Please use the Improve question button to update your question.
mani.kishore.asp.net 5-Feb-13 21:59pm

i have 3 columns

names english marks maths marks

if both names are same like

a 20 marks 30 marks
a 15 marks 10 marks

i am trying for output to be like
35 marks 40 marks at bottom of their respective columns.

Rate this:

## Solution 1

HI,

You can use like the following.

```decimal a=0, b=0, c=0;

for (int i = 0; i < (gridview1.Rows.Count); i++)
{
a = Convert.ToDecimal(gridview1.Rows[i].Cells["Column Index"].Text.ToString());
c = c + a; //storing total qty into variable
}```

Thanks
mani.kishore.asp.net 5-Feb-13 21:56pm

how to display at bottom of the column..
mani.kishore.asp.net 5-Feb-13 22:07pm

my code has grouped the grid view, for each group total to be assigned.
i have 3 columns

names english marks maths marks

if both names are same like

a 20 marks 30 marks
a 15 marks 10 marks

i am trying for output to be like
35 marks 40 marks at bottom of their respective columns.

next for b marks
Rate this:

## Solution 3

Top Experts
Last 24hrsThis month
 d@nish 200 CPallini 130 CHill60 120 OriginalGriff 90 RDBurmon 50
 Dave Kreskowiak 1,857 Richard MacCutchan 1,250 d@nish 980 OriginalGriff 874 Sergey Alexandrovich Kryukov 762