Hi all,
I'm trying to display data in a grid like format. I've modified a gallery control to do this that seems to be the best way. In this "grid" I need to have a high level aggregate row, with inline detail rows.
I've achieved this, to a degree, by nesting a second gallery inside the outer one, and used the GroupBy() function around the data source for the outer gallery, and setting the data course of the nested gallery to the "group_name" column output by the groupby function.
This works, in that I get my outer aggregate / header row and the inner children rows underneath, all good.
The issue of sizing then came up, I can dynamically size the inner gallery to fit the number of rows displayed (the grey area in the image below), as I'm sizing the whole gallery control itself, however I cant find a way of sizing the template part (blue area in image below) that parents the nested gallery to grow to fit the size of the nested gallery. It seems the TemplateSize setting sets the size of each "row" universally i.e. you can't have different sized "rows"
In the image below, the blue is parent gallery / template, the grey is the child gallery parented in the blue. I'm able to grow to grey as explained above but I am unable to grow the blue / parent area to fit with the grey / child gallery and it floods out and overlaps (see red arrow on image)
So, my question is two fold, firstly, is this the best way to to do the whole header row / child rows thing? secondly is there a way I can grow the parent to fit the children rows?
Thanks in advance