Click here to Skip to main content
15,891,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
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:
CSS
td.locked, th.locked {
    position: relative;
    cursor: default;
    left: expression(this.parentElement.parentElement.parentElement.parentElement.parentElement.scrollLeft-2);
}

th.locked {
    z-index: 99;
}
Posted
Updated 27-Dec-12 22:40pm
v2

CSS Expressions are no more in IE 8 standards mode:
http://ajaxian.com/archives/css-expressions-are-no-more-in-ie-8[^]
 
Share this answer
 
Comments
lakshmichawala 28-Dec-12 4:56am    
thanks zoltan .i hv seen the site .any alternate solutions to work on this
Zoltán Zörgő 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: http://stackoverflow.com/questions/1312236/how-do-i-create-an-html-table-with-fixed-frozen-left-column-and-scrollable-body
maybe you can try my solution, i worte a jquery plug-in can be fixed header and freeze column.

GridViewScroll with jQuery
 
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