Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET 1.x and 2.0 Application Design
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 28th, 2008, 12:31 AM
Registered User
 
Join Date: Sep 2004
Location: New Delhi, Delhi, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to rsanuj
Default how to freeze(fix) datagrid header

In .net 1.1, I want to fix(freeze) datagrid header, which is scrollable through div tag. How can I fix header of datagrid.

rishi
__________________
rishi
Reply With Quote
  #2 (permalink)  
Old August 28th, 2008, 11:04 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I did this by assigning a style class to the grid header which renders as a table row. The style rule looks like this:

TR.FixedHeader{
    position: relative;
    top: expression(this.offsetParent.scrollTop);
}

However, I did this for an application targeted at I.E. I don't know if "expression" works in other browsers.

-Peter
compiledthoughts.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid fix Header row PramodPatil ADO.NET 3 October 27th, 2007 12:39 AM
Freeze DataGrid header gerardocarroll ASP.NET 2.0 Basics 0 April 3rd, 2007 12:56 PM
freeze columns in datagrid Kris DExelle Pro VB 6 1 September 27th, 2006 07:48 AM
How to freeze the columns in windows DataGrid? pradpb999 ADO.NET 0 July 31st, 2006 06:19 AM
How to freeze the header row shankhan Classic ASP Databases 1 April 23rd, 2005 02:18 PM



All times are GMT -4. The time now is 12:40 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.