I have been handed some ASP.NET code and tasked with fixing the header and first column of the scrollable grid it contains.
I have found many, many posts on fixing headers/columns (e.g. Table fixed header and first column css/html / Html table with fixed header column and row without JS / How to freeze header and left columns of the table) but I have not been able to apply them successfully to my code. Any help you can provide would be awesome.
<asp:Content ID="Content1" ContentPlaceHolderID="bodyContent3" runat="server">
<asp:UpdatePanel ID="mainPanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Panel ID="Panel1" runat="server" >
<asp:ListView>
<LayoutTemplate>
<table id="table1" class="tblstyle1">
<thead>
<tr>
<th>th A</th>
<th>th B</th>
<th>th C</th>
<th>th D</th>
<th>th E</th>
</tr>
</thead>
<tbody>
<tr runat="server" id="itemPlaceholder"></tr>
</tbody>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr>
<td>td content 1</td>
<td>td content 2</td>
<td>td content 3</td>
<td>td content 4</td>
<td>td content 5</td>
</tr>
<div runat="server" id="xyz">
<asp:Repeater runat="server" ID="abc">
<HeaderTemplate>
<ul>
</HeaderTemplate>
<FooterTemplate></ul></FooterTemplate>
<ItemTemplate>
<li><%#:xyz %></li>
</ItemTemplate>
</asp:Repeater>
</div>
</ItemTemplate>
<EditItemTemplate>
<tr>
<td>td content 1</td>
<td>td content 2</td>
<td>td content 3</td>
<td>td content 4</td>
<td>td content 5</td>
</tr>
</EditItemTemplate>
<InsertItemTemplate>
<tr>
<td>td content 1</td>
<td>td content 2</td>
<td>td content 3</td>
<td>td content 4</td>
<td>td content 5</td>
</tr>
</InsertItemTemplate>
</asp:ListView>
</asp:Panel></table>
</ContentTemplate>
</asp:UpdatePanel>
</div>