title: Column freeze in GridView
body: <p>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:</p>
  <pre><code>td.locked, th.locked
  {
      position: relative;
      top: expression(this.offsetParent.scrollTop);
      background-color: White;        
  }
  </code></pre>
  <p>and in the code behind I have this in my grid's RowDataBound event:</p>
  <pre><code>e.Row.Cells[0].CssClass = &quot;locked&quot;;
  </code></pre>
  <p>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:
  <img src="https://i.stack.imgur.com/Efeis.png" alt="sample screenshot" /></p>
  <p>Please let me know what have I missed out so that I could enable vertical scroll for overflown data.</p>