Ok I have a datagrid that bound to an Array and I want to change the background color of a row depending on the value of datafield Emergency

   <mx:DataGrid  headerRelease="columnSort(event);plgrid.dataProvider=currentViewList;" sortableColumns="true" id="plgrid" dataProvider="{currentViewList}" rowCount="11" draggableColumns="false" selectable="true" wordWrap="true"  mouseUp="dataGridClick();" styleName="dataGridStyle" rowHeight="40" height="428">
    <mx:columns>
        <mx:Array>
            <mx:DataGridColumn dataField="Emergency" headerText="  " width="50"/>
            <mx:DataGridColumn dataField="ID" headerText="#" width="50"/>
      <mx:DataGridColumn dataField="RequestTitle" headerText="Title" width="175"/>
      <mx:DataGridColumn dataField="CompanyName" headerText="Company" width="125"/>
      <mx:DataGridColumn dataField="RequesterFullName" headerText="Requested" width="100"/>
      <mx:DataGridColumn dataField="RequestDays" headerText="Date" width="100" labelFunction="formatDate"/>
      <mx:DataGridColumn dataField="Approved" headerText="Status" width="100"/>
      <mx:DataGridColumn dataField="Quote" headerText="Quote" width="50" sortable="false"/>
      <mx:DataGridColumn dataField="Project" headerText="Project" width="50" sortable="false"/>
      <mx:DataGridColumn dataField="Erase" headerText="Erase" width="50" sortable="false"/>
     </mx:Array>
    </mx:columns>    
   </mx:DataGrid>

 

 

Thank

 

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to