Click here to Skip to main content
12,953,379 members (53,367 online)
Rate this:
Please Sign up or sign in to vote.
See more:
about sub footer and custom footer (gridview)

Hi, I want to make a gridview that would looked like this:

[country] [item name] [sales]
Japan ItemA xxxx
Japan ItemB xxxx
Japan ItemC xxxx
[total ] xxx

America ItemA xxxx
[total ] xxxx

China ItemB xxxx
China ItemC xxxx
[total ] xxxx

[total] ItemA xxxxxx
[total] ItemB xxxxxx
[total] ItemC xxxxxx

How to add subfooter in gridview?
Posted 30-Jul-12 19:18pm
Updated 30-Jul-12 19:24pm
Kenneth Haugland 31-Jul-12 1:28am
Looks a lot like you need grouping
Sandeep Mewara 31-Jul-12 14:20pm
I see this question a direct copy-paste from here:

Anything you want to add to it?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I would use a nested grid here, so that each row renders the list of countries in the nested grid, then the total underneath. A repeater makes this easier to control, but, it gives you a lot less for free.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,429
CHill60 3,490
Maciej Los 3,103
Jochen Arndt 1,975
ppolymorphe 1,930

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 31 Jul 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100