I am currently trying to design a crosstab report with the following basic layout:
Row 1: |Header1 | Header 2 | Header 3| Header 4|
Row 2: |Group 1 | | | |
Row 3: | |Group2 | | |
Row 4: | | |Group 3 | |
Row 5: | | | |Group 4 |
The first group is visible, the rest is collapsed at the beginning.
To make the whole table visually a bit more attractive I want to use empty lines to create blocks that make the table look like in the first attached image file.
I achieved this by adding empty rows between Row 1 & 2, and Row 2 & 3. This however only works of course if no other group is expanded. If I e.g. expand Group 2, the result would look like in the second attached file.
To preserve this visual blocks my idea was to insert such an empty row after each group, and change it's visibility depending on the visibility/expension-state of the group above.
I managed this by giving the empty rows a StyleName, and in the DataBound-event of the according textbox that represents displayed groupdata I iterate through all textboxes with that Stylename and change their visibility accordingly.
There is however one simple problem: all event that I found will only fire when I expand a group (ItemDataBound, ItemDataBinding). When I collapse a group no event seems to be fired at all.
Are there any events that could help me in this case? Or would there be a databinding alternative?