Exemple #1
0
 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";
         }
     }
 }
Exemple #2
0
 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();
         }
     }
 }
Exemple #3
0
 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);
            //}
        }