Click here to Skip to main content
15,891,951 members
Articles / Web Development / ASP.NET

How to Freeze GridView Header While Scrolling ?

Rate me:
Please Sign up or sign in to vote.
1.00/5 (3 votes)
8 Sep 2010CPOL 13.1K   2  
asp.net grid view

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
14 Mar 2010Pranay Rana
This thing is working for both horizontal and verticle scrolling. Here id of the div is hard coded but you can use jquery to attach css class to div element. div#gridPanel { width:900px; overflow:scroll; position:relative;}div#gridPanel th{ top:...
Please Sign up or sign in to vote.
13 Sep 2009Abhijit Jana 2 alternatives  
This is very common problem in Web development that we need tofreeze the GridView header at the time of scrolling, Here is one simpletips:Step 1 : Create a CSS class as following .HeaderFreez  {  position:relative ;   top:expression(this.offsetParent.scrollTop);  z-index: 10;  }   .HeaderFr

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions