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:
  1. <asp:Repeater id="cdcatalog" runat="server">
  2.                 <HeaderTemplate>
  3.                     <table border="1" width="100%">
  4.                         <tr>
  5.                             <th>
  6.                                 Title</th>
  7.                             <th>
  8.                                 Artist</th>
  9.                             <th>
  10.                                 Company</th>
  11.                             <th>
  12.                                 Units</th>
  13.                             <th>
  14.                                 Price</th>
  15.                             <th>
  16.                                 Disc. Price
  17.                             </th>
  18.                         </tr>
  19.                 </HeaderTemplate>
  20.                 <ItemTemplate>
  21.                     <tr>
  22.                         <td><%#Container.DataItem("title")%>
  23.                         </td>
  24.                         <td><%#Container.DataItem("artist")%>
  25.                         </td>
  26.                         <td><%#Container.DataItem("company")%>
  27.                         </td>
  28.                         <td>
  29.                             <asp:Label Runat="server" ID="units">
  30.                                 <%#Container.DataItem("units")%>
  31.                             </asp:Label>
  32.                         </td>
  33.                         <td align="right" id  = "test">
  34.                             <asp:Label Runat="server" ID="prices">
  35.                                 <%#Container.DataItem("price")%>
  36.                             </asp:Label>                           
  37.                         </td>
  38.                         <td>
  39.                             <asp:TextBox Runat="server" ID="currencyfield" onBlur="add()" Width="100px" />
  40.                         </td>
  41.                     </tr>
  42.                 </ItemTemplate>
  43.                 <FooterTemplate>
  44.                     </table>
  45.                 </FooterTemplate>
  46.             </asp:Repeater>