Hiding Table Column Within Repeater?
Hi Everyone,
How can I hide/unhide the right most column of a table in a repeater?
My goal is to allow the user to go back in forth...hide or unhide the column mattering on there preference.
Thanks!
James
VB Code:
<asp:Repeater id="cdcatalog" runat="server">
<HeaderTemplate>
<table border="1" width="100%">
<tr>
<th>
Title</th>
<th>
Artist</th>
<th>
Company</th>
<th>
Units</th>
<th>
Price</th>
<th>
Disc. Price
</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%#Container.DataItem("title")%>
</td>
<td><%#Container.DataItem("artist")%>
</td>
<td><%#Container.DataItem("company")%>
</td>
<td>
<asp:Label Runat="server" ID="units">
<%#Container.DataItem("units")%>
</asp:Label>
</td>
<td align="right" id = "test">
<asp:Label Runat="server" ID="prices">
<%#Container.DataItem("price")%>
</asp:Label>
</td>
<td>
<asp:TextBox Runat="server" ID="currencyfield" onBlur="add()" Width="100px" />
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
Re: Hiding Table Column Within Repeater?
You asked this question already and received responses.
If the responses were not adequate to resolve the issue, please bump the appropriate thread with additional information.
Thanks.