It is really quite simple. Just define personalized item rendering for the column
<mx:DataGrid width="100%" height="100%" dataProvider="{this.someData}"> <mx:columns> <mx:DataGridColumn headerText="Buttons" > <mx:itemRenderer> <fx:Component> <s:ItemRenderer width="100%"> <s:Button label="{data.buttonName}" click="{outerDocument.someFunction()}" /> </s:ItemRenderer> </fx:Component> </mx:itemRenderer> </mx:DataGridColumn> </mx:columns> </mx:DataGrid>
use data to access the dataprovider string object and outerDocument to access methods outside of the element renderer.
Hope this helps!
Ian t source share