Freeze Gridview Header [modified]
-
i am using following code for freezing Header of Gridview
-
i am using following code for freezing Header of Gridview
I'm not clear about what you are asking, While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE. How to post a question
-
I'm not clear about what you are asking, While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE. How to post a question
Sherin Iranimose wrote:
While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?
yes. That's i want. but now , when i scroll div Grid header is fixed, but if i scroll Browser scroll bar first then div , Header postion is remain same , means i am getting header in between grid. please help !!!
cheers, Abhijit
-
Sherin Iranimose wrote:
While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?
yes. That's i want. but now , when i scroll div Grid header is fixed, but if i scroll Browser scroll bar first then div , Header postion is remain same , means i am getting header in between grid. please help !!!
cheers, Abhijit
Try this css class
.gridContainer {overflow:auto;} .gridContainer table th {position:relative;} .gridContainer table tbody {overflow-x:hidden;}
put your grid inside the following div<div class="gridContainer" style="height:500px; width:600px; overflow:auto;"> </div>
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
-
i am using following code for freezing Header of Gridview
Try this Click Here Hope it will help u
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...