Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET
I have a grid view columns freezing requirement in my project .i have used following frezing code in css style sheet for locking .But this code is being worked fine in ie 7. But currently our browsers are upgrated to ie 8 and ie 9 and the frezing is not working.
Kindly help in this regards.
Following is my css code for locking the grid view columns:
td.locked, th.locked {
    position: relative;
    cursor: default;
    left: expression(this.parentElement.parentElement.parentElement.parentElement.parentElement.scrollLeft-2);
th.locked {
    z-index: 99;
Posted 27-Dec-12 22:09pm
Edited 27-Dec-12 22:40pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

CSS Expressions are no more in IE 8 standards mode:[^]
lakshmichawala at 28-Dec-12 4:56am
thanks zoltan .i hv seen the site .any alternate solutions to work on this
Zoltán Zörgő at 28-Dec-12 13:02pm
I can't give you a copy-paste solution for your gridview, thus you will have to adjust your css classes and stylesheet a little bit. But, assuming, you want to freeze leftmost column(s), here is a working solution:
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

maybe you can try my solution, i worte a jquery plug-in can be fixed header and freeze column.

GridViewScroll with jQuery

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

  Print Answers RSS
Your Filters
0 OriginalGriff 448
1 Sergey Alexandrovich Kryukov 425
2 Abhinav S 408
3 sanket saxena 285
4 Tadit Dash 160
0 Sergey Alexandrovich Kryukov 8,482
1 OriginalGriff 4,830
2 Peter Leow 3,794
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107

Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid