class name ("..headerStyle"). When I posted it, it should have only
been one period. i.e. ".headerStyle" It looks like Yahoo is doing
something funny with it.
Anyway.. if you know that your style.css is being included properly
it should work, but it might be best in this case to start with it in
the *.mxml to first validate the style is correct. One thing that I
noticed differently was how you also had "dashes" on your
alternating-row-colors and header-colors. I think that is incorrect.
As an example, look in <installDir>\Flex SDK
2.0\frameworks\defaults.css For DataGrid it has:
DataGrid
{
alternatingItemColors: #F7F7F7, #FFFFFF;
headerColors: #FFFFFF, #E6E6E6;
[I removed a bunch of other styles here]
}
This was copied from the Beta 3 version.
Thanks.
--- In flexcoders@yahoogroups.com, "Mehdi, Agha" <[EMAIL PROTECTED]> wrote:
>
> 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Scott Romer
> Sent: Thursday, May 11, 2006 5:31 PM
> To: flexcoders@yahoogroups.com
> 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 flexcoders@yahoogroups.com, "Mehdi, Agha" <Agha.Mehdi@> wrote:
> >
> > Tim,
> >
> > That didn't do it.
> >
> > Agha Mehdi
> > IDT - eBusiness Program Manager
> >
> >
> > -----Original Message-----
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Tim Hoff
> > Sent: Thursday, May 11, 2006 1:22 PM
> > To: flexcoders@yahoogroups.com
> > 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 flexcoders@yahoogroups.com, "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
> >
>
>
>
>
>
>
>
>
> --
> 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
>
--
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.