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
1210
Adding Hierarchy levels in a PivotGrid
posted

I have a WinForm PivotGrid bound to a FlatDataSource. I am trying to figure out how to add custom hierarchy that has levels which expand (like the DateTime will do automatically). Each class object contributing to the FlatDataSource may have different number of levels. Some have just one while others may have 5 levels.

I have found some samples using FlatData.HierarchyDescriptor but cannot figure it out.

Can somebody send me in the right direction on now to get this going?

Thanks,

Trausti

Parents
No Data
Reply
  • 1210
    Offline posted

    I was able to get the levels going by handling InitializeHierarchyDescriptor and adding levels there. This works as expected.

    I do still have one problem though. Each class instance in the cube has different number of levels. I need to find a way to have the levels stop dynamically. Does anybody know how to do that?

    Here is an example:

    The level with the arrow should be the last. There should be no expansion and nothing below.

    Sometimes it will only go to one level and sometimes it will go to five levels. I think I have to add as many levels as is my max and then somehow suppress this later as is required.

    Please let me know if you know how to solve this.

Children