Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1085
Grid with 2 bands - need the child band to be collapsed
posted

Hi All,

        I have a grid that has four bands .One is the parent band that shows some parent data and the rest are three different child bands of this parent. Now , when i expand a parent band , the three child band rows  are also coming as expanded as they donot have any childs. My requirement is to collapse the rows of each child band so that they can be expanded only when required.Please help.

  • 469350
    Offline posted

    Hi,

    There's no way to expand a band, only a Row is expanded or collapsed. So you can expand or collapse the parent row, but you cannot expand or collapse any collection of rows underneath that, unless there is some intermediary layer with a row that you could collapse.

    So the only way to achieve what you want here would be to have a DataSource with three levels. Each parent row would have 3 child rows which would, in turn, have the respective child band rows that are now directly under the root-level row.