Gridview Fixed Headers Using CSS in Asp.net
<div id="DataDiv" style="overflow-y: auto; height: 455px; min-height: 0px;" >
<asp:GridView ID="gvUserMenus" runat="server" EmptyDataText="No Records" HeaderStyle-CssClass="csHeader" >
</ asp:GridView>
</div>
=>applying css
..............................
.csHeader {
position: fixed !important;
margin-top: -24px;
}
Comments
Post a Comment