views:

237

answers:

0

I have a report that's being populated from an ObjectDataSource. The report includes expandable/collapsable nodes per user.

I'm allowing the viewer to filter the report by setting the FilterExpression on the datasource, then calling ReportViewer1.LocalReport.Refresh(). This is done during PostBack.

This filters the results, but the state of the expanded/collapsed nodes is lost. Is there some way to store the expanded/collapsed nodes in the ViewState? Or is there a better way to accomplish this alltogether?