Tuesday, March 16, 2010
So to resolve this problem you must fix out the header of the Gridview or HtmlTable when you are scrolling down. Below is the code to do this i.e to fix Header.
Create Style sheet :
This line of css class cause the the header row to remain on top with respect to the normal rows.
So after adding style sheet your aspx page look like below.
<div height="200px" id="gridPanel" runat="server" scrollbars="Auto" width="100px">
asp.net grid view
Right now its id specific but you can use this for multiple gridview or htmltable by using Jquery.