I have hierarchical data grid
-
top grid populates "release" object and few of its columns.
since there is list of release (ie "releases"), this grid has multiple rows.
"release" has List of "audiences" in it, which will be displayed by second grid. -
Middle grid populates "audiences" with few columns on it.
Since there are multiple audiences in the list, it expands to multiple rows.
"Audience" has List of "Expressions", which is displayed by third grid below -
Inner most grid displays "expressions".
I want to expand all rows by default either on a buttonclick event or something similar (all 3 grids and all rows) when those grid load. How do I do it?
I tried testing this on the very top level grid like this but this did not work:
releases.ForEach(r => grid1.ExpandRow(r));