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

How to Freeze GridView Header While Scrolling ?

Rate me:
Please Sign up or sign in to vote.
3.73/5 (15 votes)
13 Sep 2009CPOL 148.9K   21  
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

Views

Daily Counts

License

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


Written By
Technical Lead
India India
.NET Consultant | Former Microsoft MVP - ASP.NET | CodeProject MVP, Mentor, Insiders| Technology Evangelist | Author | Speaker | Geek | Blogger | Husband

Blog : http://abhijitjana.net
Web Site : http://dailydotnettips.com
Twitter : @AbhijitJana
My Kinect Book : Kinect for Windows SDK Programming Guide

Comments and Discussions