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>




Reply With Quote