Click here to Skip to main content
15,903,385 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want a fixed header in listview control while scrolling.. (it should be on top). my code goes like that. please help.. and thanks in advance.

XML
<div style=" height:250px; width:240px ;overflow:scroll" class="FixedHeightScrollWindow">
       <asp:ListView runat="server" ID="_simpleTableListView" >
   <LayoutTemplate>
   <table style="border:none;width: 99%">
   <thead>
    <tr>
     <th>ID</th>
     <th>Application</th>
     <th>Release Date</th>
    </tr>
    </thead>
         <tbody> <asp:PlaceHolder runat="server" ID="itemPlaceholder" />

         </tbody>
         </table>

   </LayoutTemplate>
          <ItemTemplate>
          <tr> <td><%# Eval("ID") %></td>
           <td><%# Eval("Title") %></td>
           <td><%# Eval("Realease Date", "{0:d}")%></td>
          </tr> </ItemTemplate> </asp:ListView>
          </div>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900