I have a small GridView that defaults to the gridlines being white.
The problem is that I am setting my background to white.
How do I set the GridLines to "#a6a6a6"?
Thanks,
Tom
Did you try to set like this BorderColor="#a6a6a6" BorderStyle="Solid"
BorderWidth="1" ?
Yes, here is my GridView
<asp:GridView ID="GridView2"
BackColor="White"
BorderColor="#a6a6a6"
BorderStyle="Solid"
BorderWidth="1"
AutoGenerateColumns="false"
ShowHeader="false"
GridLines="Both"
CellPadding="0"
CellSpacing="0"
Font-Names="Verdana, Arial, Helvetica, sans-serif"
Font-Bold="false"
Font-Size="9px"
runat="server">
<HeaderStyle BorderStyle="None" />
<Columns>
<asp:TemplateField HeaderText="Jobs"
HeaderStyle-BackColor="#a6a6a6" HeaderStyle-Font-Size="11px">
<ItemTemplate>
<asp:Label ID="lblJobs" Width="60px" Text='<%#
Eval("Text") %>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblJobIDs" style=" " Visible="false"
Text='<%# Eval("Value") %>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Buckets"
HeaderStyle-BackColor="#e6e6e6" HeaderStyle-ForeColor="Black"
HeaderStyle-Font-Size="11px">
<ItemTemplate>
<asp
ropDownList ID="ddlBuckets" runat="server">
<asp:ListItem Selected="True">
</asp:ListItem>
<asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem Value="2">2</asp:ListItem>
<asp:ListItem Value="3">3</asp:ListItem>
<asp:ListItem Value="4">4</asp:ListItem>
</asp
ropDownList>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
But I get a white background with a border around the grid but no gridlines
showing (I even tried to set the backcolor to red and it still shows only
the border around the grid as red).
Thanks,
Tom