how to fix header in gridview asp.net ?

can any one help me ..

with css i have some code but its working on only ie7 ... (not working on
ie8 and firefox)

ex:
css :

.GVFixedHeader { font-weight:bold; background-color: Green; position:relative;

top:expression(this.parentNode.parentNode.parentNode.scrollTop-1);}

.GVFixedFooter { font-weight:bold; background-color: Green; position:relative;

bottom:expression(getScrollBottom(this.parentNode.parentNode.parentNode.parentNode));}

script

<script language="javascript" type="text/javascript">

        function getScrollBottom(p_oElem)
        {
         return p_oElem.scrollHeight - p_oElem.scrollTop - p_oElem.clientHeight;
        }
</script>

page:

*<HeaderStyle CssClass="GVFixedHeader" />

    <FooterStyle CssClass="GVFixedFooter" />*


-- 
--~--~---------~--~----~
MANISH LANGA
(+91-9724943439)
--~--~---------~--~----~

Reply via email to