Gridview Gridlines color

T

tshad

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
 
G

Guest

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" ?
 
T

tshad

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:DropDownList 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:DropDownList>
</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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top