Click here to Skip to main content
15,888,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have table with repeater

ASP.NET
<table>
<thead>
  <tr>
    <td>Sr No.</td>
    <td>Firstname</td>
    <td>Middlename</td>
    <td>Lastname</td>
    <td>Salary</td>
    <td>Join Date</td>
    <td>Gender</td>
    <td>DOB</td>
    <td>Designation</td>
    <td>Department</td>
    <td>HR Manager</td>
    <td>Reporting Manager</td>
  </tr>
</thead>

<tbody>
  <asp:Repeater ID="repEmpList" runat="server">
    <ItemTemplate>
    <tr>
      <td><%#Container.ItemIndex+1 %></td>
    <td>Firstname</td>
    <td>Middlename</td>
    <td>Lastname</td>
    <td>Join Date</td>
    <td>Gender</td>
    <td>DOB</td>
    <td>Designation</td>
    <td>Department</td>
    <td>HR Manager</td>
    <td>Reporting Manager</td>
    </tr>
    </ItemTemplate>
  </asp:Repeater>
  </tbody>
  <tfoot>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>0.00</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
</tfoot>
</table>


now i want both scrolls horizental and vertical with fixed header and footer

how can i do that?

Please help me

Thank you in advance

What I have tried:

HTML Code given above with repeater i am binding data to repeater from code behind
Posted
Updated 9-Jul-16 0:21am
v3
Comments
Kornfeld Eliyahu Peter 10-Jul-16 6:10am    
HTML table - by design - does not support fixed header/footer...
Use Google to find the solution for you...

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