By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,034 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,034 IT Pros & Developers. It's quick & easy.

fix the gridview header in IE & Firefox

P: n/a
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
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Aug 28 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.