Guys i got a dataColumn already defined as
<mx:DataGridColumn headerText="Role" id="roleAdmin" headerStyleName="myHeaderStyles">
<mx:itemRenderer>
<fx:Component>
<mx:VBox>
<mx:Text width="100%" text="{(data.role == 0)? 'Super Admin':((data.role == 1)? 'Admin': ((data.role == 2)? 'Regular User': 'Unknown'))}"/>
</mx:VBox>
</fx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
All I want to do is, to create this data dynamically depending upon the conditions I placed.Anyone can help me with the code what I should do and how can I add all these things.
Best Regards
Try this. You will get logic how to handle dynamic columns with item renderer.
MyRenderer: