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...
>