magritton
6/17/2014 - 3:02 PM

This is code to change the total column's heading. You have to create an overload of the pivot grid localizer and then initialize it in the

This is code to change the total column's heading. You have to create an overload of the pivot grid localizer and then initialize it in the page load.

 using DevExpress.XtraPivotGrid.Localization;
 
 protected void Page_Load(object sender, EventArgs e)
        {
            PivotGridLocalizer.Active = new CustomDXPivotGridLocalizer();
        }

public class CustomDXPivotGridLocalizer : PivotGridLocalizer
        {
            public override string GetLocalizedString(PivotGridStringId id)
            {
                switch (id)
                {
                    case PivotGridStringId.GrandTotal:
                        return "Delta";
                    default:
                        return base.GetLocalizedString(id);
                }
            }
        }