Grouping & totals
GridControlGroup rows by any column and show sums, counts and averages per group.
Overview
Grouping lets users of a Blazor GridControl split a long list into groups by any column, with sums, counts and averages per group. Use it on rate cards, cost lines or orders where the question is how much per supplier or per season; users regroup by dragging a column header into the group bar. Turn on AllowGrouping, set GroupColumns to open the grid grouped, and list caption, group-footer and grid-footer totals in AggregateRows.
Examples
#Rate card grouped by category
Drag Destination into the group bar to regroup a rate card that opens grouped by Category; each caption shows the average rate and line count.
| Category | Code | Description | Supplier | Destination | Unit | Rate | Bookable |
|---|---|---|---|---|---|---|---|
| Accommodationavg $266.05(17 lines) | |||||||
| RC-1004 | Double room with breakfast | Hotel Lisbon Central | Lisbon | night | $254.62 | True | |
| RC-1005 | Twin room, room only | Hotel Lisbon Central | Lisbon | night | $98.77 | True | |
| RC-1006 | Suite with breakfast | Hotel Lisbon Central | Lisbon | night | $387.99 | True | |
| RC-1009 | Double room with breakfast | Hotel Amalfi Central | Amalfi | night | $114.36 | True | |
| RC-1010 | Twin room, room only | Hotel Amalfi Central | Amalfi | night | $160.75 | False | |
| RC-1012 | Double room with breakfast | Hotel Santorini Central | Santorini | night | $243.15 | True | |
| RC-1013 | Twin room, room only | Hotel Santorini Central | Santorini | night | $186.53 | True | |
| RC-1014 | Suite with breakfast | Hotel Santorini Central | Santorini | night | $372.19 | True | |
| RC-1015 | Double room with breakfast | Hotel Kyoto Central | Kyoto | night | $217.03 | True | |
| RC-1016 | Twin room, room only | Hotel Kyoto Central | Kyoto | night | $130.71 | True | |
| RC-1017 | Suite with breakfast | Hotel Kyoto Central | Kyoto | night | $496.51 | True | |
| RC-1022 | Twin room, room only | Hotel Hoi An Central | Hoi An | night | $202.30 | True | |
| RC-1023 | Suite with breakfast | Hotel Hoi An Central | Hoi An | night | $535.31 | True | |
| RC-1029 | Suite with breakfast | Hotel Cape Town Central | Cape Town | night | $482.20 | False | |
| RC-1058 | Double room with breakfast | Hotel Banff Central | Banff | night | $313.01 | True | |
| RC-1067 | Double room with breakfast | Hotel Patagonia Central | Patagonia | night | $226.05 | True | |
| RC-1068 | Twin room, room only | Hotel Patagonia Central | Patagonia | night | $101.38 | True | |
| Experiencesavg $96.45(15 lines) | |||||||
| RC-1018 | Old town walking tour | Kyoto Walks | Kyoto | pax | $41.85 | True | |
| RC-1019 | Full-day excursion with lunch | Kyoto Day Tours | Kyoto | pax | $136.63 | True | |
| RC-1020 | Cooking class with market visit | Taste of Kyoto | Kyoto | pax | $112.52 | True | |
| RC-1024 | Old town walking tour | Hoi An Walks | Hoi An | pax | $42.04 | False | |
| RC-1025 | Full-day excursion with lunch | Hoi An Day Tours | Hoi An | pax | $104.55 | True | |
| RC-1026 | Cooking class with market visit | Taste of Hoi An | Hoi An | pax | $108.12 | True | |
| RC-1030 | Old town walking tour | Cape Town Walks | Cape Town | pax | $29.28 | True | |
| RC-1031 | Full-day excursion with lunch | Cape Town Day Tours | Cape Town | pax | $96.07 | True | |
| RC-1032 | Cooking class with market visit | Taste of Cape Town | Cape Town | pax | $79.79 | True | |
| RC-1036 | Old town walking tour | Marrakech Walks | Marrakech | pax | $28.81 | True | |
| RC-1037 | Full-day excursion with lunch | Marrakech Day Tours | Marrakech | pax | $117.71 | True | |
| RC-1038 | Cooking class with market visit | Taste of Marrakech | Marrakech | pax | $78.62 | True | |
| RC-1041 | Full-day excursion with lunch | Reykjavik Day Tours | Reykjavik | pax | $169.86 | True | |
| RC-1042 | Cooking class with market visit | Taste of Reykjavik | Reykjavik | pax | $159.85 | True | |
| RC-1046 | Cooking class with market visit | Taste of Vancouver | Vancouver | pax | $141.01 | True | |
| Servicesavg $52.47(20 lines) | |||||||
| RC-1021 | Travel insurance, comprehensive | Rainy Day Travel Cover | Kyoto | pax | $76.10 | True | |
| RC-1027 | Travel insurance, comprehensive | Rainy Day Travel Cover | Hoi An | pax | $55.65 | True | |
| RC-1028 | Booking fee | Razor Sharp Getaways, head office | Hoi An | booking | $54.98 | True | |
| RC-1033 | Travel insurance, comprehensive | Rainy Day Travel Cover | Cape Town | pax | $56.06 | False | |
| RC-1034 | Booking fee | Razor Sharp Getaways, head office | Cape Town | booking | $57.52 | True | |
| RC-1035 | Documents and delivery | Razor Sharp Getaways, head office | Cape Town | booking | $25.54 | True | |
| RC-1039 | Travel insurance, comprehensive | Rainy Day Travel Cover | Marrakech | pax | $38.53 | True | |
| RC-1040 | Booking fee | Razor Sharp Getaways, head office | Marrakech | booking | $43.46 | True | |
| RC-1043 | Travel insurance, comprehensive | Rainy Day Travel Cover | Reykjavik | pax | $98.87 | True | |
| RC-1044 | Booking fee | Razor Sharp Getaways, head office | Reykjavik | booking | $74.13 | True | |
| RC-1045 | Documents and delivery | Razor Sharp Getaways, head office | Reykjavik | booking | $25.93 | True | |
| RC-1047 | Travel insurance, comprehensive | Rainy Day Travel Cover | Vancouver | pax | $73.68 | True | |
| RC-1048 | Booking fee | Razor Sharp Getaways, head office | Vancouver | booking | $71.40 | True | |
| RC-1049 | Documents and delivery | Razor Sharp Getaways, head office | Vancouver | booking | $29.69 | False | |
| RC-1052 | Travel insurance, comprehensive | Rainy Day Travel Cover | Banff | pax | $71.90 | True | |
| RC-1053 | Booking fee | Razor Sharp Getaways, head office | Banff | booking | $59.67 | True | |
| RC-1054 | Documents and delivery | Razor Sharp Getaways, head office | Banff | booking | $26.79 | True | |
| RC-1059 | Booking fee | Razor Sharp Getaways, head office | Queenstown | booking | $62.86 | True | |
| RC-1060 | Documents and delivery | Razor Sharp Getaways, head office | Queenstown | booking | $22.63 | True | |
| RC-1063 | Documents and delivery | Razor Sharp Getaways, head office | Patagonia | booking | $24.07 | True | |
| Transportavg $286.49(16 lines) | |||||||
| RC-1001 | Return flights, economy | Overhead Bin Airways | Lisbon | pax | $531.63 | True | |
| RC-1002 | Airport to hotel, private car | Lisbon Airport Transfers | Lisbon | trip | $59.98 | False | |
| RC-1003 | Day-trip bus with driver | Lisbon Rail & Bus | Lisbon | day | $248.74 | True | |
| RC-1007 | Airport to hotel, private car | Amalfi Airport Transfers | Amalfi | trip | $48.68 | True | |
| RC-1008 | Day-trip bus with driver | Amalfi Rail & Bus | Amalfi | day | $165.78 | False | |
| RC-1011 | Day-trip bus with driver | Santorini Rail & Bus | Santorini | day | $200.38 | True | |
| RC-1050 | Return flights, economy | Overhead Bin Airways | Vancouver | pax | $611.77 | True | |
| RC-1051 | Airport to hotel, private car | Vancouver Airport Transfers | Vancouver | trip | $92.51 | True | |
| RC-1055 | Return flights, economy | Overhead Bin Airways | Banff | pax | $620.27 | True | |
| RC-1056 | Airport to hotel, private car | Banff Airport Transfers | Banff | trip | $69.13 | True | |
| RC-1057 | Day-trip bus with driver | Banff Rail & Bus | Banff | day | $290.41 | True | |
| RC-1061 | Return flights, economy | Overhead Bin Airways | Queenstown | pax | $823.65 | True | |
| RC-1062 | Airport to hotel, private car | Queenstown Airport Transfers | Queenstown | trip | $63.40 | True | |
| RC-1064 | Return flights, economy | Overhead Bin Airways | Patagonia | pax | $552.40 | True | |
| RC-1065 | Airport to hotel, private car | Patagonia Airport Transfers | Patagonia | trip | $62.21 | True | |
| RC-1066 | Day-trip bus with driver | Patagonia Rail & Bus | Patagonia | day | $142.90 | True | |
#Package cost lines with sums in the footer, grouped on demand
Drag Cost group, Supplier or Season into the bar: every group gets Qty and Total sums in its footer while the grid footer keeps the overall total.
| Season | Cost group | Supplier | Service | Qty | Unit | Net rate | Total | Rate basis |
|---|---|---|---|---|---|---|---|---|
| Spring | A Transport | Overhead Bin Airways | Return flights, economy | 2 | pax | $540.35 | $1,080.70 | Contract |
| Spring | A Transport | Overhead Bin Airways | Checked baggage, 23 kg | 2 | pax | $42.81 | $85.62 | Contract |
| Spring | A Transport | Lisbon Airport Transfers | Airport to hotel, private car | 1 | trip | $56.71 | $56.71 | Spot |
| Spring | A Transport | Lisbon Airport Transfers | Hotel to airport, private car | 1 | trip | $68.29 | $68.29 | Spot |
| Spring | A Transport | Lisbon Rail & Bus | Day-trip bus with driver | 1 | day | $124.94 | $124.94 | Spot |
| Spring | B Accommodation | Hotel Lisbon Central | Double room with breakfast | 7 | night | $149.39 | $1,045.73 | Contract |
| Spring | B Accommodation | Hotel Lisbon Central | Late checkout on departure day | 1 | stay | $54.43 | $54.43 | Spot |
| Spring | C Experiences | Lisbon Walks | Old town walking tour | 2 | pax | $35.26 | $70.52 | Contract |
| Spring | C Experiences | Lisbon Walks | Evening food tour | 2 | pax | $90.97 | $181.94 | Spot |
| Spring | C Experiences | Lisbon Day Tours | Full-day excursion with lunch | 2 | pax | $140.90 | $281.80 | Contract |
| Spring | C Experiences | Lisbon Day Tours | Entrance tickets | 2 | pax | $26.74 | $53.48 | Spot |
| Spring | C Experiences | Taste of Lisbon | Cooking class with market visit | 2 | pax | $82.86 | $165.72 | Contract |
| Spring | D Services | Rainy Day Travel Cover | Travel insurance, comprehensive | 2 | pax | $56.71 | $113.42 | Contract |
| Spring | D Services | Razor Sharp Getaways, head office | Booking fee | 1 | booking | $49.80 | $49.80 | Contract |
| Spring | D Services | Razor Sharp Getaways, head office | Documents and delivery | 1 | booking | $16.95 | $16.95 | Contract |
| Summer | A Transport | Overhead Bin Airways | Return flights, economy | 2 | pax | $675.44 | $1,350.88 | Contract |
| Summer | A Transport | Overhead Bin Airways | Checked baggage, 23 kg | 2 | pax | $53.51 | $107.02 | Contract |
| Summer | A Transport | Lisbon Airport Transfers | Airport to hotel, private car | 1 | trip | $64.81 | $64.81 | Spot |
| Summer | A Transport | Lisbon Airport Transfers | Hotel to airport, private car | 1 | trip | $61.31 | $61.31 | Spot |
| Summer | A Transport | Lisbon Rail & Bus | Day-trip bus with driver | 1 | day | $273.40 | $273.40 | Spot |
| Summer | B Accommodation | Hotel Lisbon Central | Double room with breakfast | 7 | night | $186.74 | $1,307.18 | Contract |
| Summer | B Accommodation | Hotel Lisbon Central | Late checkout on departure day | 1 | stay | $68.11 | $68.11 | Spot |
| Summer | C Experiences | Lisbon Walks | Old town walking tour | 2 | pax | $44.08 | $88.16 | Contract |
| Summer | C Experiences | Lisbon Walks | Evening food tour | 2 | pax | $111.62 | $223.24 | Spot |
| Summer | C Experiences | Lisbon Day Tours | Full-day excursion with lunch | 2 | pax | $176.12 | $352.24 | Contract |
| Summer | C Experiences | Lisbon Day Tours | Entrance tickets | 2 | pax | $23.71 | $47.42 | Spot |
| Summer | C Experiences | Taste of Lisbon | Cooking class with market visit | 2 | pax | $103.58 | $207.16 | Contract |
| Summer | D Services | Rainy Day Travel Cover | Travel insurance, comprehensive | 2 | pax | $70.89 | $141.78 | Contract |
| Summer | D Services | Razor Sharp Getaways, head office | Booking fee | 1 | booking | $62.25 | $62.25 | Contract |
| Summer | D Services | Razor Sharp Getaways, head office | Documents and delivery | 1 | booking | $21.19 | $21.19 | Contract |
| Fall | A Transport | Overhead Bin Airways | Return flights, economy | 2 | pax | $567.37 | $1,134.74 | Contract |
| Fall | A Transport | Overhead Bin Airways | Checked baggage, 23 kg | 2 | pax | $44.95 | $89.90 | Contract |
| Fall | A Transport | Lisbon Airport Transfers | Airport to hotel, private car | 1 | trip | $80.85 | $80.85 | Spot |
| Fall | A Transport | Lisbon Airport Transfers | Hotel to airport, private car | 1 | trip | $54.23 | $54.23 | Spot |
| Fall | A Transport | Lisbon Rail & Bus | Day-trip bus with driver | 1 | day | $259.21 | $259.21 | Spot |
| Fall | B Accommodation | Hotel Lisbon Central | Double room with breakfast | 7 | night | $156.86 | $1,098.02 | Contract |
| Fall | B Accommodation | Hotel Lisbon Central | Late checkout on departure day | 1 | stay | $53.32 | $53.32 | Spot |
| Fall | C Experiences | Lisbon Walks | Old town walking tour | 2 | pax | $37.02 | $74.04 | Contract |
| Fall | C Experiences | Lisbon Walks | Evening food tour | 2 | pax | $92.65 | $185.30 | Spot |
| Fall | C Experiences | Lisbon Day Tours | Full-day excursion with lunch | 2 | pax | $147.94 | $295.88 | Contract |
| Fall | C Experiences | Lisbon Day Tours | Entrance tickets | 2 | pax | $23.20 | $46.40 | Spot |
| Fall | C Experiences | Taste of Lisbon | Cooking class with market visit | 2 | pax | $87.00 | $174.00 | Contract |
| Fall | D Services | Rainy Day Travel Cover | Travel insurance, comprehensive | 2 | pax | $59.55 | $119.10 | Contract |
| Fall | D Services | Razor Sharp Getaways, head office | Booking fee | 1 | booking | $52.29 | $52.29 | Contract |
| Fall | D Services | Razor Sharp Getaways, head office | Documents and delivery | 1 | booking | $17.80 | $17.80 | Contract |
| Winter | A Transport | Overhead Bin Airways | Return flights, economy | 2 | pax | $459.30 | $918.60 | Contract |
| Winter | A Transport | Overhead Bin Airways | Checked baggage, 23 kg | 2 | pax | $36.39 | $72.78 | Contract |
| Winter | A Transport | Lisbon Airport Transfers | Airport to hotel, private car | 1 | trip | $39.83 | $39.83 | Spot |
| Winter | A Transport | Lisbon Airport Transfers | Hotel to airport, private car | 1 | trip | $50.04 | $50.04 | Spot |
| Winter | A Transport | Lisbon Rail & Bus | Day-trip bus with driver | 1 | day | $171.39 | $171.39 | Spot |
| Winter | B Accommodation | Hotel Lisbon Central | Double room with breakfast | 7 | night | $126.98 | $888.86 | Contract |
| Winter | B Accommodation | Hotel Lisbon Central | Late checkout on departure day | 1 | stay | $46.44 | $46.44 | Spot |
| Winter | C Experiences | Lisbon Walks | Old town walking tour | 2 | pax | $29.97 | $59.94 | Contract |
| Winter | C Experiences | Lisbon Walks | Evening food tour | 2 | pax | $55.39 | $110.78 | Spot |
| Winter | C Experiences | Lisbon Day Tours | Full-day excursion with lunch | 2 | pax | $119.76 | $239.52 | Contract |
| Winter | C Experiences | Lisbon Day Tours | Entrance tickets | 2 | pax | $25.32 | $50.64 | Spot |
| Winter | C Experiences | Taste of Lisbon | Cooking class with market visit | 2 | pax | $70.43 | $140.86 | Contract |
| Winter | D Services | Rainy Day Travel Cover | Travel insurance, comprehensive | 2 | pax | $48.20 | $96.40 | Contract |
| Winter | D Services | Razor Sharp Getaways, head office | Booking fee | 1 | booking | $42.33 | $42.33 | Contract |
| Winter | D Services | Razor Sharp Getaways, head office | Documents and delivery | 1 | booking | $14.41 | $14.41 | Contract |