Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Gridview Gridlines color

Reply
Thread Tools

Gridview Gridlines color

 
 
tshad
Guest
Posts: n/a
 
      01-19-2010
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



 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      01-20-2010
On Jan 20, 12:55*am, "tshad" <t...@pdsa.com> wrote:
> 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" ?
 
Reply With Quote
 
 
 
 
tshad
Guest
Posts: n/a
 
      01-20-2010

"Alexey Smirnov" <> wrote in message
news:7e67a0bc-e5e9-4b9f-aa7e-...
On Jan 20, 12:55 am, "tshad" <t...@pdsa.com> wrote:
> 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>
<aspropDownList 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>
</aspropDownList>
</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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font color from current font color to black color Kamaljeet Saini Ruby 0 02-13-2009 04:58 PM
disappearing gridlines in gridview Vinki ASP .Net Web Controls 1 05-17-2007 05:23 PM
disapearing gridlines in gridview =?Utf-8?B?Vmlua2k=?= ASP .Net 4 04-27-2007 02:28 PM
GridView Gridlines Mike P ASP .Net 2 04-26-2006 12:28 PM
GridView -> Excel = no gridlines Magnus Blomberg ASP .Net Datagrid Control 0 10-21-2005 04:33 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57