I anticipate that I have over looked the obvious, but this one has me stumped. The scenario is this:
Any Help Greatly Appreciated.
Neil
1. Does the behavior change if you turn off the AJAX functionality of both grids? This isn't meant as a suggestion of a workaround, but to help determine whether the AJAX functionality is part of the issue or not.
2. In what event are you setting the invisible label, and is this on the client or on the server? What are you doing to go back to the server to request new rows for the child grid?
This is likely going to require some in-depth research, likely beyond what we can provide over the forums. I strongly suggest you submit a support request and include a sample project that we can run and debug that demonstrates what you're doing. Not only will such a sample answer many of the questions I've asked so far (including the ones above), it'll give us something we can investigate directly. We may also be able to suggest alternate approaches to get similar results, once we clearly understand what you're doing.
Two questions:
Are you using a WebAsyncRefreshPanel or an UpdatePanel on your page? If so, these may be causing your styles defined in InitializeLayout to be lost. You may want to style your grids using CSS instead, if this is the case.
How are you passing the information from the parent grid to the child grid? This may simply be an order-of-events issue, depending on what you're doing and when.