Hi All.
I'd like to be able to set the color of a row, in a datagrid where I
use a custom renderer, to show an image per row. (a icon)

How can I accomplish this - any help would be appreciated.

Thanks,
Mark

<mx:DataGrid id="dginsertions" dataProvider="{insertions}"
                                                                         x="0" 
y="25" width="100%"
height="100%" showScrollTips="true" showDataTips="true"
dragEnabled="true">
                                        <mx:columns>
                                                <mx:DataGridColumn 
headerText="Firma" sortable="false">
                                                        <mx:itemRenderer>
                                                                <mx:Component>
                                                                        
<mx:Label text="{data.advertiser}"
buttonMode="true" useHandCursor="true"
click="outerDocument.showInsertion(data.pageno, data.pagetitle,
data.materialno  )"  />
                                                                </mx:Component>
                                                        </mx:itemRenderer>
                                                </mx:DataGridColumn>
                                                <mx:DataGridColumn width="18" 
resizable="true"
textAlign="center" >
                                                        <mx:itemRenderer>
                                                                <mx:Component>
                                                                                
        <mx:Image width="16" height="16" source="bin/info.png"
click="outerDocument.popInsertionInfo(data.customerno,
data.advertiser)" buttonMode="true" useHandCursor="true"
scaleContent="false"/>
                                                                </mx:Component> 
                                                                
                                                        </mx:itemRenderer>
                                                        
                                                </mx:DataGridColumn>
                                        </mx:columns>
                                </mx:DataGrid>

Reply via email to