T
tshad
In 2008, I have the following in my css script - this is not the actual
colors just something to find out why it won't work:
***************************************************
..Grid { border: solid 1px #FFFFFF; background-color:Red }
..Grid td
{
border: solid 1px #FFFFFF;
margin: 1px 1px 1px 1px;
padding: 1px 1px 1px 1px;
text-align: center;
}
..GridHeader
{
font-weight: bold;
background-color: #8b8dbb;
}
..GridItem
{
background-color: Green;
}
..GridAltItem
{
background-color: red;
}
********************************
In my .net page I have:
<head runat="server">
<title></title>
<link href="App_Data/AutoUPS.css" rel="stylesheet" type="text/css" />
</head>
It obviously sees it since which I put start typing "CSSClass=", it shows
the classes in the file.
I have the following:
<asp:GridView ID="GridView1"
OnRowDataBound="ItemDataBoundEventHandler1"
AutoGenerateColumns="False"
CssClass="Grid"
runat="server">
<AlternatingRowStyle CssClass="GridAltItem"/>
<RowStyle CssClass="GridItem" ForeColor="#0000FF"/>
<Columns>
<asp:BoundField DataField="ID" HeaderText="id"
SortExpressionID" />
<asp:BoundField DataField="Code" HeaderText="Code"
SortExpression="Code"/>
</Columns>
</asp:GridView>
But all I get is a black and white grid.
Why is that?
Thanks,
Tom
colors just something to find out why it won't work:
***************************************************
..Grid { border: solid 1px #FFFFFF; background-color:Red }
..Grid td
{
border: solid 1px #FFFFFF;
margin: 1px 1px 1px 1px;
padding: 1px 1px 1px 1px;
text-align: center;
}
..GridHeader
{
font-weight: bold;
background-color: #8b8dbb;
}
..GridItem
{
background-color: Green;
}
..GridAltItem
{
background-color: red;
}
********************************
In my .net page I have:
<head runat="server">
<title></title>
<link href="App_Data/AutoUPS.css" rel="stylesheet" type="text/css" />
</head>
It obviously sees it since which I put start typing "CSSClass=", it shows
the classes in the file.
I have the following:
<asp:GridView ID="GridView1"
OnRowDataBound="ItemDataBoundEventHandler1"
AutoGenerateColumns="False"
CssClass="Grid"
runat="server">
<AlternatingRowStyle CssClass="GridAltItem"/>
<RowStyle CssClass="GridItem" ForeColor="#0000FF"/>
<Columns>
<asp:BoundField DataField="ID" HeaderText="id"
SortExpressionID" />
<asp:BoundField DataField="Code" HeaderText="Code"
SortExpression="Code"/>
</Columns>
</asp:GridView>
But all I get is a black and white grid.
Why is that?
Thanks,
Tom