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
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]">