The DataGrid component implements the List component. So you need to set the
style for List.

if (_global.styles.List == undefined) {
   _global.styles.List = new CSSStyleDeclaration();
}
_global.styles.List.setStyle("color", 0xFFFFFF);

On 10/15/06, Carl Welch <[EMAIL PROTECTED]> wrote:

I'm trying to make the color of text white in a datagrid. it doesn't
seem to be working, though. The text looks dark blue against a black
background. Also is it possible to change the color of the top part of
the datagrid. Even though I have the cells set to an alternating color
of black and grey, the column labels stay white.

I googled but couln't find anything helpful...

import mx.styles.CSSStyleDeclaration;
if (_global.styles.DataGrid == undefined) {
        _global.styles.DataGrid = new CSSStyleDeclaration();
}
_global.styles.DataGrid.setStyle("alternatingRowColors", [0x000000,
0x0B0B0B]);
_global.styles.DataGrid.setStyle("color ", 0xFFFFFF);
_global.styles.DataGrid.setStyle("themeColor", "haloBlue");
_global.styles.DataGrid.setStyle("borderStyle", "solid");
_global.styles.DataGrid.setStyle("borderColor", 0x666666);


Thanks...
--
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to