Flex 4 – DataGrid with buttons in the cell

How to add button controls to the cells of the data grid? I want to have a button for each row in a column in the datagrid. The data grid control row does not need to be selected in any way.
It’s really easy. Just define a custom item renderer for the column













Use the dataprovider object and outerDocument of the data reference row to access methods outside the item renderer.

Hope this helps!

How to add button controls to the cells of the data grid? I want to have a button for each row in a column in the datagrid. The data grid control row does not need to be selected in any way.

This is really simple. Only You need to define a custom item renderer for the column






< s:ItemRenderer width="100%">






Use the dataprovider object and outerDocument of the data reference row to access methods outside the item renderer.

Hope this helps!

Leave a Comment

Your email address will not be published.