Hello,
I'm having a very difficult time with my GridView. I have a "Select" CommandField in my GridView and when I move my mouse over the word "select" the text color and font weight change. My GridView does not have any styles or formats so I don't understand why this is happening since I don't see anything in my page that could cause it. I'm trying to stop this hover effect from happening by creating themes and skins and CSS for the grid and setting "text-decoration: none;", but for some reason none of the settings get applied. I've even tried to convert the CommandField to a template field without any success. Can someone please point me in the right direction? I've tried to include some relevant information below:
Skin file:
<asp:GridView SkinID="gdvMainSkin" runat="server" CssClass="GridViewStyle">
<Columns>
<asp:TemplateField HeaderText="Select" ShowHeader="False" >
<ItemTemplate>
<asp:LinkButton runat="server" CausesValidation="False" CommandName="Select" Text="Select" CssClass="ControlStyle"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Css File:
.GridViewStyle
{
Width: 90%;
}
.ControlStyle
a:link, a:visited, a:hover
{
text-transform: none;
text-decoration: none;
color: Gray;
Width: 45px;
}
Thanks
sa4720k