■ PivotGridControl 엘리먼트에서 그룹에 필드를 배치하는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<dxpg:PivotGridControl x:Name="pivotGridControl"> <dxpg:PivotGridControl.Fields> <dxpg:PivotGridField x:Name="productPivotGridField" FieldName="ProductName" Area="RowArea" Group="{Binding ElementName=pivotGridGroup}" GroupIndex="1" /> <dxpg:PivotGridField x:Name="categoryPivotGridField" FieldName="CategoryName" Area="RowArea" Group="{Binding ElementName=pivotGridGroup}" GroupIndex="0" /> <dxpg:PivotGridField x:Name="quarterPivotGridField" FieldName="OrderDate" Area="ColumnArea" GroupInterval="DateQuarter" /> <dxpg:PivotGridField x:Name="unitPricePivotGridField" FieldName="UnitPrice" SummaryType="Max" Area="DataArea" /> </dxpg:PivotGridControl.Fields> <dxpg:PivotGridControl.Groups> <dxpg:PivotGridGroup x:Name="pivotGridGroup" /> </dxpg:PivotGridControl.Groups> </dxpg:PivotGridControl> |
※ xmlns:dxpg="http://schemas.devexpress.com/winfx/2008/xaml/pivotgrid"