Gridview with Fixed Header
<asp:Panel ID="Panel1" runat="server" Height="500px" Width="100%" ScrollBars="Vertical">
<table border="1" width="100%"
height="100%"
cellpadding="0"
cellspacing="5"><tr>
<td>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="true">
<HeaderStyle CssClass=" Gridviewheader" Height="25px" Width="100%" />
</asp:GridView>
</td>
</tr>
</table>
</asp:Panel>
<style type="text/css">
.Gridviewheader{
font-weight: bold;
position: absolute;
background-color: White;
}
</style>
Build headers with groupbox in labels of gridview
ReplyDelete