public void Update(Analysis analysis) { if (analysis != null && !PivotGridSettingsHelper.HasPivotGridSettings(analysis)) { IAnalysisControl control = CreateAnalysisControl(); control.DataSource = new AnalysisDataSource(analysis, objectSpace.GetObjects(typeof(DemoTask))); control.Fields["Priority"].Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; control.Fields["Subject"].Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; control.Fields["AssignedTo.DisplayName"].Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; PivotGridSettingsHelper.SavePivotGridSettings(CreatePivotGridSettingsStore(control), analysis); } }
public void Update(Analysis analysis) { if (analysis != null && !PivotGridSettingsHelper.HasPivotGridSettings(analysis)) { IAnalysisControl control = CreateAnalysisControl(); control.DataSource = new AnalysisDataSource(analysis, new XPCollection <crmPaymentPlan>(analysis.Session)); //Customize the settings of the control's fields (their caption, etc.) as required control.Fields["Priority"].Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; control.Fields["Subject"].Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; control.Fields["AssignedTo.DisplayName"].Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; PivotGridSettingsHelper.SavePivotGridSettings(CreatePivotGridSettingsStore(control), analysis); analysis.Save(); } }
public void Update(Analysis analysis) { if (analysis != null && !PivotGridSettingsHelper.HasPivotGridSettings(analysis)) { IAnalysisControl control = CreateAnalysisControl(); control.DataSource = new AnalysisDataSource(analysis, new XPCollection <DemoTask>(analysis.Session)); control.Fields["Status"].Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; control.Fields["Priority"].Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; control.Fields["EstimatedWork"].Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; control.Fields["ActualWork"].Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; control.Fields["AssignedTo.DisplayName"].Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; PivotGridSettingsHelper.SavePivotGridSettings(CreatePivotGridSettingsStore(control), analysis); } }