header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Ramakrishna
Points:0
Posts:0

9/17/2010 3:22:01 AM

Title: Advanced Datagrid Header text Coloring?


Hi,

I want to apply the colors for Advanced Datagrid header text. How to apply?

Please Help me.

With Regards,
krishna



1
Troy
Points: 820
Posts:0
9/19/2010 11:24:37 AM



you can set the style of datagrid header colors using actionscript and using css both. see this code to give header colors in flex

// using actionscript in flex
<mx:Script>
    <![CDATA[
        private function btn_click(evt:Event):void {
            dataGrid.setStyle("headerColors", ["#FF0000", 0x0000FF]);
        }
    ]]>
</mx:Script>

//using css header colors in flex
 DataGrid {
        headerColors: #FF0000, '0x0000FF';
    }

//in mxml you can use 

<mx:DataGrid id="myDataGrid" headerColors="[#FF0000, 0x0000FF]">





Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 8+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions