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

Popular posts from this blog

Reverse Sentence using c#

How to write Pure java script Program?