Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Freeze Headers Spikes CPU

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ben - 18 Mar 2008 21:58 GMT
Hi guys,

i'm using this CSS style on my table header rows (gridview in my case)
in order to freeze them from scrolling.

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

It works, but two issues with this approach:

1) it causes the CPU to spike when the table is scrolled
2) it's IE specific

Is there any alternative?  especially to solve issue #1... i'm not as
concerned about it only working on IE, since that's my target
platform.

Thanks so much for any advice!!
Ben - 18 Mar 2008 22:29 GMT
> Hi guys,
>
[quoted text clipped - 19 lines]
>
> Thanks so much for any advice!!

I found out my main issue of CPU spiking was when I was freezing the
first Column as well... using this css:

.LockedColumnCell
{
   background-color:beige;
   position:relative;
   z-index:1;
   left:expression(this.offsetParent.scrollLeft);
}

The strange thing is that just moving the mouse on the screen caused
the CPU to spike... I wonder why?!? shouldn't it only be 'working'
when the window is resized?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.