Hi Brendan,
Thanks for your reply. I have tried setting the style at runtime
using: setStyle("backgroundColor", 0xFF0000);.

This is giving me a compiler error: CSS Value for '{cssValue}' not
supported.     

Any idea, please.

Mustaq

--- In flexcoders@yahoogroups.com, "Brendan Meutzner"
<[EMAIL PROTECTED]> wrote:
>
> Which brings up something I noticed the other day... when setting
the
> backgroundColor for a DatagridColumn for compile time within the
MXML tag,
> it was causing a runtime error when the application loaded... like
the style
> was being set before the DatagridColumn existed... a bug?  Style
is set fine
> if you do it at runtime by programmatically setting the style.
>
> Brendan
>
>
>
> On 4/20/06, Karl Johnson <[EMAIL PROTECTED]> wrote:
> >
> > Are you trying to set the background color for a specific row or
for
> > ever row at once? Are you seeing alternating row colors instead
of the
> > color you want? If that is the case, they you probably want to
set the
> > the alternatingRowColors style (takes two RRGGBB colors).
> >
> >
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/List.htm
l#s
> > tyles
> >
> > If you want to set a row's bg color based on certain criteria,
the way I
> > would do it is call dg.setPropertiesAt(rowId,
> > {backgroundColor:0xC2D4DF})
> >
> > |<
> >
> > Karl Johnson
> > Cynergy Systems, Inc.
> > http://www.cynergysystems.com
> >
> > -----Original Message-----
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Mustaq Pradhan
> > Sent: Thursday, April 20, 2006 6:31 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Background color of DataGrid row and column
> >
> > How to set background color of a DG row. By setting
backgroundColor
> > property I get nothing displayed, but the mxml compiled ok.
> >
> > Is there any way to set background color of a DG row?
> >
> >
> >
> >
> >
> >
> > --
> > 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




Reply via email to