fix the gridview header in IE & Firefox

  • Thread starter Thread starter Alhambra Eidos Kiquenet
  • Start date Start date
A

Alhambra Eidos Kiquenet

Hi misters,

I am using a CssClass to fix the gridview header in ASP.Net 2005(C#),which
is working fine in IE..But not working in Firefox..This is the cssclass which
I'm using right now

WrapperDiv
{
background-image: url(tdbg.jpg);
color: #002F5C;
font-weight: bold;
font-size: 10px;
font-family: Verdana;
text-align: left;
}

WrapperDiv TH
{
position: relative;
}
WrapperDiv tbody
{
overflow:auto;width:100px;
}
WrapperDiv TR
{
height: 0px;
}

This is how I implemented the css in the gridview

<DIV style="overflow:scroll;height:220px;width:740px;" id="div1">
<asp:GridView id="gvKOLOrganon" runat="server" AllowPaging="false"
AllowSorting="True"
AutoGenerateColumns="true" CellPadding="1" CellSpacing="0" GridLines="None"
Width="722px" CssClass="WrapperDiv" OnRowEditing="gvKOLOrganon_RowEditing"
OnRowCommand="gvKOLOrganon_RowCommand"
OnRowCancelingEdit="gvKOLOrganon_RowCancelingEdit"
OnRowUpdating="gvKOLOrganon_RowUpdating">



<PagerStyle CssClass="grdPager" HorizontalAlign="Right" />
<RowStyle CssClass="grdRow" />
<SelectedRowStyle BackColor="black" />
<AlternatingRowStyle CssClass="grdAltRow" />
<EmptyDataTemplate>
No Records are found.
</EmptyDataTemplate>
</asp:GridView> </DIV>

Can anyone help me to sort out this problem???

Thanks in advance, greetings
 
Back
Top