How to change background color of column header for AdvancedDataGrid control in flex
I have below columnGroup in advancedDataGrid control and I want to show title on red background color and also apply style but background color in title does not appear as red only the color of the text in the title changes.
<mx:AdvancedDataGridColumnGroup textAlign="center" headerStyleName="myHeaderStyles" >
....
I also have a certain style
<mx:Style>
.myHeaderStyles {
color: red;
fontWeight: bold;
background-color:red;
background-disabled-color:red;
area-fill:true;
}
</mx:Style>
+2
source to share
2 answers
It sounds like you might have to extend the column class. This article is for DataGridColumn, but maybe it will help.
http://ntt.cc/2009/02/18/set-background-color-for-headers-of-datagrid.html
+1
source to share