Пример #1
0
 void PivotGridDemoModule_Loaded(object sender, RoutedEventArgs e)
 {
     ChartFactory.InitComboBox(cbChartType, null);
     pivotGrid.DataSource = NWindContext.Create().SalesPersons.ToList();
     SetFilter();
     SetSelection();
 }
Пример #2
0
 public CustomChartData()
 {
     InitializeComponent();
     ChartFactory.InitComboBox(cbChartType, new Type[] { InitDiagram() });
     RowExportRule = RowFieldValueExportRule.ProductName;
     pivotGrid.ChartProvideRowFieldValuesAsType = typeof(string);
     cbRowFieldValuesExportRule.Items.AddRange(new string[] { "ProductName", "Category/ProductName",
                                                              "Encoded Product Category" });
     cbRowFieldValuesExportRule.SelectedIndex = 0;
     pivotGrid.DataSource = NWindContext.Create().SalesPersons.ToList();
     pivotGrid.MultiSelection.SetSelection(CreateSelectedPoints());
     SetMeasureUnits(DateTimeMeasurementUnit.Year, DateTimeMeasurementUnit.Quarter, DateTimeMeasurementUnit.Month);
     CollapseValues();
 }