1 Reply Latest reply on Oct 12, 2011 12:53 AM by Vibhuti Gosavi(InfoCepts)

    Set MX datagrid Header background color

    Zolotoj Level 3

      I am trying to change a backgound color in one of datagrid's column header.

      I am using the following code:

       

      <mx:Style>

              .headerCustomStyle

              {

                  fontWeight: bold;

                  textAlign: left;

                  backgroundAlpha: 0.5;

                  backgroundColor: #0000cc;   

              }

          </mx:Style>

      ....

      <mx:DataGridColumn headerText="Column 1" headerStyleName="headerCustomStyle" />

       

      It does bold and alignment but not the backgound. Would also want to play with a border if it's possible.

       

      Thanks