Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Gridivew Summary of all columns

Reply
Thread Tools

Gridivew Summary of all columns

 
 
vaarsa@gmail.com
Guest
Posts: n/a
 
      10-03-2006
Hi,

I need to populate a gridview. The Gridview will have columns for 52
weeks, and I need to populate a total for all the individual 52
columns. Can anybody explain me how to do it as I am fairly new to this
..net. The values for xxx and yyy will be populated from the database
and I need to figure out the total dynamically

For eg.

Description Week1 week2 week3 week4
week5.... week 52

xxx 1 2 3 4
5 52
yyy 2 3 4 5
6 52

Total 3 5 7 9
11 104

This is how the gridview should like.

Any help would be appreciated...

 
Reply With Quote
 
 
 
 
David Wier
Guest
Posts: n/a
 
      10-03-2006
This code sample at ASPNet101.com shows how to add one column - just do the
same for the others:
http://aspnet101.com/aspnet101/aspne...=GVFooterTotal

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com


<> wrote in message
news: oups.com...
> Hi,
>
> I need to populate a gridview. The Gridview will have columns for 52
> weeks, and I need to populate a total for all the individual 52
> columns. Can anybody explain me how to do it as I am fairly new to this
> .net. The values for xxx and yyy will be populated from the database
> and I need to figure out the total dynamically
>
> For eg.
>
> Description Week1 week2 week3 week4
> week5.... week 52
>
> xxx 1 2 3 4
> 5 52
> yyy 2 3 4 5
> 6 52
>
> Total 3 5 7 9
> 11 104
>
> This is how the gridview should like.
>
> Any help would be appreciated...
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Align table columns with gridview columns Jacksm ASP .Net 2 11-21-2006 09:49 PM
Read CSV - string Columns - Int columns =?Utf-8?B?YmVub2l0?= ASP .Net 0 05-08-2006 02:11 PM
database columns vs. gui columns and sorting ittay.dror@gmail.com Java 5 03-04-2006 10:48 AM
CSS columns problem - faux columns don't work henrybranson@hotmail.com HTML 4 11-24-2005 10:05 AM
convert rows to columns and columns to rows helpful sql ASP .Net 0 05-19-2005 06:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57