addChild(dataGrid); // 添加dataGrid控件
var columns:Array = new Array();
var col:DataGridColumn;
for ( var i:* in dgDataArr[0] ) {
col = new DataGridColumn(i);
columns.push(col);
}
dataGrid.columns = columns;
}
private function itemClickHandler(e:ListEvent):void
{
trace(e.target);
}
]]>