Column freeze in GridView

Losyshobe

New Member
I have a asp .net web application where I use GridView. There is whole lot of data in it, making it to scroll horizontal as well as vertical. Now, I wanted to freeze the first column in it while horizontal scroll is happening. I got some help from the forums online and wrote this particular piece of css style:\[code\]td.locked, th.locked{ position: relative; top: expression(this.offsetParent.scrollTop); background-color: White; }\[/code\]and in the code behind I have this in my grid's RowDataBound event:\[code\]e.Row.Cells[0].CssClass = "locked";\[/code\]But now, freezing of the columns happens in a and if say I have 15 records and my div shows only 10 records and rest has to go for vertical scroll, but the frozen column's 15 rows are overflowing the grid. Please find the screenshot below:
Efeis.png
Please let me know what have I missed out so that I could enable vertical scroll for overflown data.
 
Back
Top