Hi,
I've just installed NetAdvantage 9.1 but can't figure out how the nested group functionality works and the online and offline (PDF) help files don't help me either.
I already have some grids which use groups to place some columns in, but I would now like to build in a hierarchy in my groups, thus I now have:
Level 1 | Level 2 | Level 3Col1 | Col2| Col1 | Col2| Col1 | Col2
and I want:
Level 1 | Level 2 .......Sub1 | Sub 2 |Col1|Col2|Col1|Col2 | ...
where each group has only 1parent group.
I know that it has something to do with RowLayouts, but could you help me a bit?
Thank you!
SabbeRubbish
The only way to do this is using the new RowLayout Groups feature.
The easiest way to set it up is to go into the grid designer and go to the Column Arrangement overview and choose Group Layout. Then you can go to the layout designer and add your groups and arrange the columns in those groups however you like.
Dear Mike,
Thank you for your reply.
I failed to mention that I needed to add those groups programatically.I eventually figured it out after several hours:
1. Set the Band's RowLayoutStyle to GroupLayout.2. Instead of grouping columns using the standard Group property, use the RowLayoutColumnInfo's ParentGroup property.3. Do this too with the subgroups, use the RowLayoutGroupInfo's ParentGroup property to set a groups parent group.4. To adjust the height/width of groups and subgroups (for me especially the height of non-subgrouped groups), use the SpanX, SpanY and LabelSpan properties of the RowLayoutGroupInfo property.
I hope that 1) this is correct and 2) many people can learn what I needed to digg up myself.
How the SpanX, SpanY and LabelSpan properties work, I'm not sure yet.
Best regards,