I have a WHDG on my page. When the page is first loaded I expand all the bands and that works fine. However, if an event occurs that causes the page to postback all the bands are collapsed and giving the command to expand results in an error.
Is there a way to expand all bands on postbacks or is there a way to preserve the status of the WHDG in such a way that the grid doesn't change which bands are collapsed or expanded when a postback occurs?
Hi dvanmil,
Is there a possibility you could attach a small sample reproducing this? The expanded status should be preserved over a postback. However, if you sort or page in a grid, then the children are collapsed. A picture of the exception may also help us.
regards,David Young
Thanks for the reply. Yesterday I was able to solve this issue myself. In our page load event we cleared the rows before attaching the datasource again. This is what caused the rows to be collapsed after the post back. Now I have made sure that the rows only get cleared in specific cases and it works like a charm now.