-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml.vb
30 lines (27 loc) · 1.44 KB
/
MainWindow.xaml.vb
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
Imports System.Windows
Imports DevExpress.Xpf.PivotGrid
Namespace WpfOlapRetrieveFieldsExample
''' <summary>
''' Interaction logic for MainWindow.xaml
''' </summary>
Public Partial Class MainWindow
Inherits Window
Public Sub New()
Me.InitializeComponent()
' Retrieves fields.
Me.pivotGridControl1.RetrieveFields(FieldArea.ColumnArea, False)
' Adds some fields from the Field List to the specified area to create a report.
Me.pivotGridControl1.Fields("[Customer].[Country].[Country]").Area = FieldArea.RowArea
Me.pivotGridControl1.Fields("[Customer].[Country].[Country]").Visible = True
Me.pivotGridControl1.Fields("[Customer].[City].[City]").Area = FieldArea.RowArea
Me.pivotGridControl1.Fields("[Customer].[City].[City]").Visible = True
Me.pivotGridControl1.Fields("[Date].[Fiscal].[Fiscal Year]").Area = FieldArea.ColumnArea
Me.pivotGridControl1.Fields("[Date].[Fiscal].[Fiscal Year]").Visible = True
Me.pivotGridControl1.Fields("[Measures].[Internet Sales Amount]").Visible = True
' Sets the Customization Forms style to Excel2007 with additional capabilities.
Me.pivotGridControl1.FieldListStyle = FieldListStyle.Excel2007
' Invokes the Field List.
Me.pivotGridControl1.ShowFieldList()
End Sub
End Class
End Namespace