Results 1 to 2 of 2

Thread: Hiding Table Column Within Repeater?

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Posts
    32

    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:
    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>

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497

    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.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width