HierarchicalBand

Stimulsoft Reports.NET discussion
Post Reply
Stéphane
Posts: 74
Joined: Wed Dec 06, 2006 3:45 am
Location: Paris (France)

HierarchicalBand

Post by Stéphane »

Hello,

I'm trying the HierarchicalBand. It works but I have some little questions :
1) I don't understand what is the goal of the ParentValue property. The KeyDataColumn and MasterKeyDataColumn properties seem to be sufficient to work...
2) In my report, the HierarchicalBand is a master band. I have a simple DataBand as child band (I set the HierarchicalBand as MasterComponent). It works but I would like that the databand be shifted as the HierarchicalBand. Is it possible ?


Thanks in advance.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

HierarchicalBand

Post by Vital »

1) I don't understand what is the goal of the ParentValue property. The KeyDataColumn and MasterKeyDataColumn properties seem to be sufficient to work...
Report engine use value from ParentValue property to identify parent level of tree. If parent value in KeyDataColumn equal to null or string.empty you don't need use it.
2) In my report, the HierarchicalBand is a master band. I have a simple DataBand as child band (I set the HierarchicalBand as MasterComponent). It works but I would like that the databand be shifted as the HierarchicalBand. Is it possible ?
Place into databand container. Place all components from databand to container. In BeforePrintEvent of this container place following code:

Code: Select all

Container1.Left = HierarchicalBand1.DataSource.GetLevel() * Unit.ConvertFromHInches(HierarchicalBand1.Indent);
Thank you.
Stéphane
Posts: 74
Joined: Wed Dec 06, 2006 3:45 am
Location: Paris (France)

HierarchicalBand

Post by Stéphane »

Excellent !

Thanks for the quick answer.
Post Reply