0 Replies Latest reply on Feb 10, 2011 12:16 AM by vineet osho

    Set headerstylename  dynamically in Advancedatagrid

    vineet osho Level 1

      Hi friends i am using advancedatagrid and adding columns at runtime in as3.but i can not change the headerstyle of the columns of that grid.i am using

       

                    var col1:AdvancedDataGridColumn = new AdvancedDataGridColumn();
                      col1.setStyle('headerStyleName','dgHeaderStyle');

      here is style:-

          <mx:Style>
              .headerBlue { color: #0000FF; }
          </mx:Style>

      but it cant work for me.can any body guides me how to change the headerstyle at runtime.its working fine when i am using that property in

      <mx :advancedatagrid column> but in case of adding runtime columns it cant work.can any body guides me how to change the headerstyle at runtime.


      Thanks and regards

      Vineet Osho