ASP.NET - freeze header - Asked By msakt on 24-May-12 12:49 AM

    height: 25px;
    background-color: #c8d3f2;
    color: #000;
    font-weight: bold;

i am using tis style for gridview header...if use position:absolute...freeze header is work but header width differ from column width...if command position:absolute   width set correctly not working freeze header

Jitendra Faye replied to msakt on 24-May-12 12:56 AM
Simply apply CSS for header style,

<HeaderStyle CssClass="header"Height="20px" />

the css

<style type="text/css">
Somesh Yadav replied to msakt on 24-May-12 01:28 AM

Option (a) buy into a UI package that includes a souped-up GridView with this functionality built-in.

Option (b) roll your own - it's not simple. Dino Esposito

EDIT: Just noticed that the Dino article links to a subscriber-only area on the ASPnetPro magazine site.

Here's using extenders.

or check this,

dipa ahuja replied to msakt on 24-May-12 10:50 AM

<style type="text/css">
    border1px solid black;
  .WrapperDiv TH
  .WrapperDiv TR
    /* Needed for IE */
  function onLoad() {