Flex Get DataGrid Row Value one bye one
Posted on Sunday, May 22, 2011
|
No Comments
private function getDataGridValue():Array {
var columnsValue:Array = new Array();
var column:DataGridColumn;
var dataProvider:Object = view.dataGrid.dataProvider;
var rowCount:int = dataProvider.length;
var ColumnValue:String;
for(var i:int=0;i<rowCount;i++)
{
column = view.dataGrid.columns[3];
ColumnValue = column.itemToLabel(dataProvider[i]);
columnsValue.push(ColumnValue);
}
return columnsValue;
//Alert.show(ColumnValue);
}