Hi folks. I have a gridview showing news articles. It's set up so that it only shows the article's title and not the content of the article. What I would like to do is using a collapsible panel in each of the gridview's rows so that when a title is clicked, the content appears below the title. I've tried several ways (that makes sense to me) but I can't seem to make this work. I don't know if it's even possible to use the collapsible panel this way. Any suggestions?
My gridview is using itemtemplate and alternatingitemtemplate for layout purposes. In each row I have a table.
Example:
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<%#Eval("ItemDate", "{0:d}")%>
</td>
<td>
<span class="bold">
<%#Eval("Title")%>
</span>
</td>
</tr>
</table>
</ItemTemplate>
Can I make another table in the itemtemplate for the content and put an <asp:panel> around each table and toggle them with the collapsible panel? It's also worth mentioning that my gridview is inside an ajax updatepanel (which works great).