I have this in my style.css
DataGrid
{
alternating-row-colors:#FFFFFF, #EFEFEF;
header-colors:#4A8AC0, #4A8AC0;
headerStyleName:"headerStyle";
}
..headerStyle
{
fontWeight:"bold";
fontSize:10;
color:#FFFFFF;
}
And it doesn't work. Do I need to set DataGrid attribute of headerStyle to this class?
Thanks
Agha Mehdi
IDT - eBusiness Program Manager
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Scott Romer
Sent: Thursday, May 11, 2006 5:31 PM
To: [email protected]
Subject: [flexcoders] Re: DataGridColumn Style
That almost works... perhaps it just needs to be cleaned up a bit.
In my mxml file, I included the following:
<mx:Style>
DataGrid
{
headerStyleName:"headerStyle";
headerColors:#000000,#CCD9E6;
}
..headerStyle
{
fontWeight:"bold";
fontSize:10;
color:#ffffff;
}
</mx:Style>
NOTE: It looks like you want the header text to be white. This code
(basically Tim's example) now sets the header Text to white, with the
background of the header showing as a gradient from black to whatever
color the #CCD9E6 is;
One other change to Tim's response was the ..gridHeaderStyle, should
have just be a single .
Try again.
--- In [email protected], "Mehdi, Agha" <[EMAIL PROTECTED]> wrote:
>
> Tim,
>
> That didn't do it.
>
> Agha Mehdi
> IDT - eBusiness Program Manager
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Tim Hoff
> Sent: Thursday, May 11, 2006 1:22 PM
> To: [email protected]
> Subject: [flexcoders] Re: DataGridColumn Style
>
> You could try something like this:
>
> DataGrid {
> headerStyleName:"gridHeaderStyle";
> headerColors:#ffffff,#CCD9E6;
> }
>
> ..gridHeaderStyle
> {
> fontWeight:"bold";
> fontSize:10;
> color:#000000;
> }
>
> -TH
>
>
>
>
>
> --- In [email protected], "Mehdi, Agha" <Agha.Mehdi@>
> wrote:
> >
> > Hi all,
> >
> > How can I set the color of text of DataGrid Column Headers?
> > DataGridColumn{color:#FFFFFF;} in .css is not working
> >
> > Thanks
> >
> > Agha Mehdi
> > IDT - eBusiness Program Manager
> > Work: 408.284.8239
> > Cell : 510.493.0491
> > Fax : 408.284.2766
> >
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
You can search right from your browser? It's easy and it's free. See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

