-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form1.cs
35 lines (28 loc) · 1.28 KB
/
Form1.cs
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
33
34
35
using DevExpress.XtraEditors;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace XtraPivotGrid_UserFolders {
public partial class Form1 : XtraForm {
public Form1() {
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e) {
this.salesPersonTableAdapter.Fill(this.nwindDataSet.SalesPerson);
excelDataSource1.FileName = "SalesPerson.xlsx";
excelDataSource1.Fill();
// Enable group folders in a customization window.
pivotGridControl1.OptionsView.GroupFieldsInCustomizationWindow = true;
// Specify the name of the folder that contains the Employees field.
fieldSalesPerson1.DisplayFolder = "Employees";
fieldSalesPerson1.Visible = false;
// Specify the root and the nested folder names.
fieldProductName1.DisplayFolder = "Products\\Name";
fieldCategoryName1.DisplayFolder = "Products\\Category";
fieldProductName1.Visible = false;
fieldCategoryName1.Visible = false;
// Invoke the Customization Form at the default location - the main window's bottom right corner.
pivotGridControl1.ShowCustomization();
}
}
}