ComponentOne
MVC FlexGrid Column Groups ASP.NET MVC FlexGrid Column Groups

The grids below have hierarchical column structures where some columns contain groups of columns.

The columns have multi-level, merged headers that reflect the structure of the data. Clicking header cells selects the whole group.

Both examples create the headers using the ColumnGroupProvider class which is defined in the wijmo.grid.columngroups extension module.

W3C table example

This example is based on the W3 page that describes the table element. It shows a simple table with a column group that shows "Average" weight and height values:

Height
Weight
Red Eyes
Males
1.9
0.003
40%
Females
1.7
0.002
43%

Financial table example

This example shows a table with financial data. The data contains two column groups, one showing fund performance and one showing fund composition.

Name
Curr
YTD
1 M
6 M
12 M
Stocks
Bonds
Cash
Other
Constant Growth IXTR
USD
5.23%
1.42%
4.43%
7.43%
17%
32%
36%
15%
Optimus Prime MMCT
EUR
3.43%
4.30%
2.44%
5.43%
61%
80%
90%
22%
Serenity Now ZTZZZ
YEN
5.22%
1.43%
4.58%
7.32%
66%
9%
19%
6%