[C#/WPF/DEVEXPRESS] PivotGridControl 엘리먼트 사용하기
■ 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 28 29 30 31 32 |
<Grid xmlns:dxpg="http://schemas.devexpress.com/winfx/2008/xaml/pivotgrid"> <dxpg:PivotGridControl x:Name="pivotGridControl"> <dxpg:PivotGridControl.Fields> <dxpg:PivotGridField x:Name="countryPivotGridField" FieldName="Country" Area="RowArea" /> <dxpg:PivotGridField x:Name="salesPersonPivotGridField" FieldName="Sales Person" Area="RowArea" Caption="Customer" /> <dxpg:PivotGridField x:Name="orderDatePivotGridField" FieldName="OrderDate" Area="ColumnArea" GroupInterval="DateYear" Caption="Year" /> <dxpg:PivotGridField x:Name="categoryNamePivotGridField" FieldName="CategoryName" Area="ColumnArea" Caption="Product Category" /> <dxpg:PivotGridField x:Name="productNamePivotGridField" FieldName="ProductName" Area="FilterArea" Caption="Product Name" /> <dxpg:PivotGridField x:Name="extendedPricePivotGridField" FieldName="Extended Price" Area="DataArea" CellFormat="c0" /> </dxpg:PivotGridControl.Fields> </dxpg:PivotGridControl> </Grid> |