Display crosstab data in a Blazor DataGrid by pivoting rows into columns - summarize values across two dimensions, such as sales by product and month, in a single grid.
Year | 2014 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 |
|---|---|---|---|---|---|---|---|---|---|---|
| Company | Folk och fä HB | Centro comercial Moctezuma | Split Rail Beer & Ale | Richter Supermarkt | Que Delícia | Berglunds snabbköp | Chop-suey Chinese | Vins et alcools Chevalier | Toms Spezialitäten | Wellington Importadora |
| Amount | ¤2,987.00 | ¤100.80 | ¤4,867.40 | ¤2,490.50 | ¤1,000.80 | ¤2,102.00 | ¤625.20 | ¤1,100.20 | ¤1,863.40 | ¤517.80 |
Yes - project each cross dimension into its own column and define those columns; for a full pivot UI with row and column groups, use the PivotDataGrid.
Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under
MIT