Click here to Skip to main content
15,895,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, in order to freeze the header of the grid view i am using the following css class and associate with headerstyle of the gridview.
CSS
.joblistview_header_row
{
    background-color:#DFE0E2;
    font-weight:bold;
    font-size: 20px;
    vertical-align:middle;
    text-align: left;
    position: fixed;
}


though the headers get freeze the size of the header width is not matching(diminished) the width of the datarows of the gridview.

i changed "position: fixed;" to "position: relative;" the width was matching with that of the datarow but the header wasn't freezed.
Posted

1 solution

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