C# Tutorials and offshore development in India
Tutorials Resources Forum Reviews Communities Interview Jobs Projects Training Videos


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...


Birthday Greetings
Learn Windows 7: How to Repair Windows 7    This article explains how to repair Windows 7 opertaing system without disturbing user settings and other programs.



Forums » .NET » ASP.NET »

How to make header of grid view static and rows only scrolable in asp.net 2.0


Posted Date: 15 Dec 2008      Posted By:: Rasmi Ranjan    Member Level: Gold    Member Rank: 0     Points: 1   Responses: 1



hi all
How to make grid view header static and rows only scrolable.





Responses

Author: Babu Akkandi     Member Level: Diamond      Member Rank: 45     Date: 15/Dec/2008   Rating: 2 out of 52 out of 5     Points: 3

Hi,

Just follow the steps below,


1. Define class .Freezing in Stylesheet:

.Freezing
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
z-index: 10;
}


2. Assign GridView's Header's cssClass to Freezing
<HeaderStyle ... CssClass= "Freezing" ...></HeaderStyle>


Hope, it helps you.

Thanks and Regards,
Babu Akkandi
Microsoft Technology



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Add Textbox to Footer of GridView
Previous : Knowing Frame Work is there or not
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



About Us    Contact Us    Privacy Policy    Terms Of Use