Flex4为datagrid添加按钮

 

<s:DataGrid>
    <s:columns>
        <s:ArrayList>
            <s:GridColumn dataField="ip" headerText="IP" width="15"/>
            <s:GridColumn dataField="alarmInfo" headerText="告警信息"/>   
            <s:GridColumn headerText="操作"  width="150">
                <s:itemRenderer>
                    <fx:Component>
	                <s:GridItemRenderer>
	                    <s:button label="删除">
	                </s:GridItemRenderer>
	            </fx:Component>
                </s:itemRenderer>
            </s:GridColumn>
        </s:ArrayList>
    </s:columns>
</s:DataGrid>

你可能感兴趣的:(datagrid,flex4,flex4表格加按钮)