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
620
Collapse the Child Band on some conditions
posted

I have a Band 0 with n rows. It has the Childband Band 1 with n rows.

If I want to collapse the Band 0 on some condition, It doesn't  work well. No bands are getting collapsed.

I do have a e.Layout.Rows.ExpandAll() in InitializeLayout event.

And am adding the following code in RowInitialize Event

if(e.Row.Band.Index == 0)

 {

  if(Condition)

    e.Row.CollapseAll()

  }

This code doesn't work. Its not doing anything.

 

 

 

Parents
No Data
Reply
  • 1570
    Offline posted

    Have you tried going at it in the opposite direction?

    I have a similar setup but I don't call the expand all routine instead I only expand the rows meeting the criterial to be expanded.

    Just my two cents,

    -Ian

Children