title: How to freeze gridview column header in asp.net?
body: <p>I need help on freezing gridview column header in asp.net.</p>
  
  <p>I have tried to create a css code on page source code as displayed below:</p>
  
  <pre><code> &lt;style type="text/css"&gt;
  
      .Freezing
      {
          position:relative ;
          top:expression(this.offsetParent.scrollTop);
          z-index: 10;
      }  
  
  &lt;/style&gt;
  </code></pre>
  
  <p>And after that i called the css into page load of web form.</p>
  
  <pre><code>  GridView1.CssClass = "Freezing"
  </code></pre>
  
  <p>Nothing happens whenever i debug the web application with above codes.</p>
  
  <p>Thanks in advance.</p>