Flex动态生成DataGrid 动态生成列。
?如何动态生成?
var cols:ArrayList = new ArrayList();var gridColumn:GridColumn = new GridColumn();gridColumn.dataField = "操作";gridColumn.headerText = "Column 1";gridColumn.itemRenderer = new ClassFactory(DataGridRenderer);cols.addItem(gridColumn);grid.columns = cols;??