Click here to Skip to main content
15,942,580 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have large data in my database, when I retrieve it from database in grid view the headers moves up and not able to see as scrolls down. How I can fix it.
Please help?
Posted

 
Share this answer
 
v2
Comments
codeBegin 30-Apr-12 3:00am    
code project articles are really helpful. Thank you Prasad, links are really helped me out.
Prasad_Kulkarni 23-May-12 1:31am    
Glad it helps!
Thank you!
To freeze Gridview header, try:

Step 1:
Create a CSS class as following
.HeaderFreez
{
  position:relative ;
  top:expression(this.offsetParent.scrollTop);
  z-index: 10;
}

Step 2:
Set Gridview's HeaderStyle CssClass as follows CssClass="HeaderFreez"
 
Share this answer
 
v2
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900