There are a few ways to handle this...
1. If you really want to stick with the gridview, you can modify the HTML output in the pages PreRender event and add another row below the main GV row. In that you can place a collapsible panel with the detail.
2. Or, ditch the gridview and use a repeater. Then you can place the extra row and panel right in the markup and you'll be done.
The second option is easier at first glance. But it can get tricky if you plan to use some of the GV's features such as paging, sorting, or selecting. If that's the case, I would go for option 1.
You can also make the GV one big template cell. Then nest a table in there yourself. That way you wouldn't have to touch it in PreRender, but wouldn't have as much flexibility.
So, it's pretty much a tradeoff between flexibility and ease...
__________________
"Political Correctness is a doctrine, fostered by a delusionary, illogical, liberal minority and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end."
|