views:

190

answers:

1

The data provider (ArrayCollection) for my data grid consists of objects with ByteArray (int) fields. How do I make the data field display as int without transforming my data provider?

A: 

Not quite sure, but in order to display something like that in datagrid i'd do this:

<mx:itemRenderer>
    <mx:Component>
        <mx:Label 
            text="{ ( data.yourByteArray.toString()) }" 
            textDecoration="none" <!-- other props -->
        />
    </mx:Component>
</mx:itemRenderer>

zarko.susnjar
inside <mx:DataGridColumn> (choped somehow in code part)
zarko.susnjar
I think that might work with some adjustments. Thank you :)
Random Joe