Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
WinPivorGrid Hide Column Totals?
posted

Is there a way to hide / remove All (X) Column Totals from the Pivot? I do not need them and they don't make sense

Parents
No Data
Reply
  • 23930
    Verified Answer
    Offline posted

    Hi Jose,

    Thank you for posting in our forums.

    This is possible if you are using FlatDataSource. It exposes an IinitializeHerarchyDescriptor event which gives you access to the different levels of the hierarchy. This allows you to remove the “All” totals from the pivot grid:

    LevelDescriptor level = e.HierarchyDescriptor.

                    LevelDescriptors.ToList().FirstOrDefault(lvl => lvl.Name == "all");

    if (level != null)

                    e.HierarchyDescriptor.LevelDescriptors.Remove(level.Name);

    Please let me know if you have any additional questions.

Children