Datagrid CSS not work..

W

Wasco

Hi,
I created a CSS StyleSheet like this:
---------------------------------------------------------------------------------
..gridDetail
{background-color: #DBD3C1; width:952px;
font-size:x-large; }
..itemStyle
{ color:#4A3C8C;
background-color:#E7E7FF;
font-family:Verdana; font-size:xx-large
}
..headerStyle
{font-weight:bold; color:#F7F7F7;
background-color:#4A3C8C;}
---------------------------------------------------------------------------------

and a datagrid using that CSS file:
---------------------------------------------------------------------------------
<asp:datagrid id="DataGrid1" runat="server" CssClass="gridDetail">
<AlternatingItemStyle CssClass="alternate"></AlternatingItemStyle>
<ItemStyle CssClass="itemStyle"></ItemStyle>
<HeaderStyle CssClass="headerStyle"></HeaderStyle>
</asp:datagrid>
---------------------------------------------------------------------------------

but it doesn't work.
I create columns of datagrid at runtime.

Could you help me please?

Sorry for my english.

Thanks a lot in advance
wa
 

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

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,806
Members
47,352
Latest member
Maricruz09

Latest Threads

Top