Hi all,
I'm grouping rows by some column. I have two groups of rows (and so two groupBy rows). I need one group of rows to be indented by one indent number and another one by another number, Thus, the grouped rows are supposed to be indented by different numbers.
I see there are properties to indent only bands, groupBy rows and expansion indecators of groupBy rows. I need something like indentation for bands, but for grouped rows.
Is it possible to achieve that?
Thanks,
Vitaly
Hi Vitaly,
I'm not sure I am clear on what you want. When you say you have two GroupByRows, do you mean two rows in the same collection? Or are you talking about two different levels of grouping - two grouped columns?
Either way, I am pretty sure the grid does not support this. If you have two GroupByRows in the same collection, then you can't indent one and not the other.If you have two levels of grouping in the same band, then IndentationGroupByRow property is on the band level, so you can't set it for each column.
Thanks for the response, Mike.
Lets consider a simple example. There is a grid with multiple rows and columns. One column contains a bool value. The datasource has tens of rows. When the band is grouped by that column two groupBy rows will be created and for each groupBy row there will be a set of data rows "assigned" to it. For the first groupBy row - the set of data rows consists of rows that has the cells[theColumn] == true and for the second groupBy row - the set of data rows consists of rows that has the cells[theColumn] == false (I don't know how to name those sets of rows. Is there a commonly used name for them?). I need one set of rows (meaning each row in a set) to be indented by 10 pixels and another by 20 pixels. If that's not possible is there a workaround?
-Vitaly
Okay, so you want the children of the first GroupByRow to be indented differently from the children of the second GroupByRow. There is currently no way to do this in the grid. The grid simply does not support it. There is no workaround that I know of. Since both sets of rows are part of the same band, they cannot be indented differently.