flex 如何获取datagrid中cell的数据

英文: get selected cell value of datagrid in flex

 

URL:http://siphu.wordpress.com/2009/08/26/get-selected-cell-value-of-datagrid-in-flex/

 

DataGrid: itemClick="itemClickHandler(event)"

function getCellValue(e:ListEvent){
var colIndex:Number=e.columnIndex;				
var datagrid:DataGrid=e.target as DataGrid;
var col:DataGridColumn=datagrid.columns[colIndex];
//cell value
var fitlertext:String=datagrid.selectedItem[col.dataField];
}
 

你可能感兴趣的:(wordpress,Flex)