Hi,
I wish to export my data as a pivotgrid without using UI. How to achieve this.?
I tried but when i export pdf, i get an empty sheet.
PivotGridControl = new PivotGridControl{ItemSource = Results, VisualStyle = PivotGridVisualStyle.Metro};
PivotGridControl.PivotCalculations.Add(new PivotComputationInfo() { FieldHeader = "TotalPnL", FieldName = "TotalPnL", Format = "C0", SummaryType = SummaryType.DecimalTotalSum });
PivotGridControl.LoadInBackground = false;
PivotGridControl.PivotEngine.EnableOnDemandCalculations = false;
PivotGridControl.PivotRows.Add(new PivotItem() { FieldMappingName = "SubCluster", FieldHeader = "SubCluster" });
PivotGridControl.Refresh();
Now, if i export as excel, i get an exception. How to do this without binding to an UI Control.?