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.
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
I know that the opposite direction works.
But according to my conditions to be applied for collapsing the row would be difficult if I go in the opposite direction.