private void xrPivotGrid1_FieldValueDisplayText(object sender, DevExpress.XtraReports.UI.PivotGrid.PivotFieldDisplayTextEventArgs e) { if (e.ValueType == DevExpress.XtraPivotGrid.PivotGridValueType.GrandTotal) { if (e.IsColumn) { e.DisplayText = "Total"; } else { e.DisplayText = "Total"; } } }
private void XrPivotGrid1_FieldValueDisplayText(object sender, DevExpress.XtraReports.UI.PivotGrid.PivotFieldDisplayTextEventArgs e) { if (e.ValueType == DevExpress.XtraPivotGrid.PivotGridValueType.GrandTotal) { if (e.DisplayText == "Grand Total") { e.DisplayText = "Total"; } else { e.DisplayText = e.DataField.SummaryType.ToString(); } } }
private void xrPivotGrid1_FieldValueDisplayText(object sender, DevExpress.XtraReports.UI.PivotGrid.PivotFieldDisplayTextEventArgs e) { if (e.ValueType == DevExpress.XtraPivotGrid.PivotGridValueType.Total || e.ValueType == DevExpress.XtraPivotGrid.PivotGridValueType.GrandTotal) { if (this.StatSummaryType.Value.ToString() == "0") { e.DisplayText = "Total"; } else { e.DisplayText = "Average"; } } }
private void xrPivotGrid1_FieldValueDisplayText(object sender, DevExpress.XtraReports.UI.PivotGrid.PivotFieldDisplayTextEventArgs e) { if (e.ValueType == DevExpress.XtraPivotGrid.PivotGridValueType.GrandTotal) { if (e.DisplayText == "Grand Total") { e.DisplayText = "Total"; } else { e.DisplayText = e.DataField.SummaryType.ToString(); } } //if (!e.IsColumn && (e.Field == null || e.Field.AreaIndex == 0)) //{ // e.DisplayText = string.Format("{0}. {1}", e.MinIndex, e.DisplayText); //} }