I am building an advancedDataGrid from Action script completely. I have the 
Data grid up and running . There is a requirement which says I need to Show 
Summary rows within the data grid in a differemt Color . What I am doing is 
based on the data of the xml I want to draw it in different colors or say make 
it bold . Can anyone help me in this regard .
Since i am building it from Action Script completely . I dont know how to set 
the bg color . This is my Code . Kindly help me folks .

var dg:AdvancedDataGrid = new AdvancedDataGrid ; 

 
                   //instantiate a new DataGrid
    var dgc:AdvancedDataGridColumn;
    var aColumnsNew:Array = dg.columns
    var iTotalDGWidth:int = 0;
    for (var i:int=0;i<aColumnDef.length;i++)  {                  //loop over 
the column definition array
      oColumnDef = aColumnDef[i];
      dgc = new AdvancedDataGridColumn();                                  
//instantiate a new DataGridColumn
      dgc.dataField = oColumnDef.dataField;                        //start 
setting the properties from the column def array
      dgc.width = oColumnDef.width;
      iTotalDGWidth += dgc.width;                                  //add up the 
column widths
      dgc.editable = oColumnDef.editable;
      dgc.sortable = oColumnDef.sortable
      dgc.visible = oColumnDef.visible;
      dgc.wordWrap = oColumnDef.wordWrap;
      aColumnsNew.push(dgc)   the new dataGridColumn onto the array
    }
    
    
    
    dg.columns =aColumnsNew;  the array back to the dtaGrid
    dg.width = iTotalDGWidth;
    dg.dataProvider = _xlcCatalog;
     this.addChild(dg); 


      

Reply via email to