Monday, October 3, 2011

Access data of DtaGrid Rows in Flex

var dp:Object=Mydatagrid.dataProvider;
var cursor:IViewCursor=dp.createCursor();
while( !cursor.afterLast )
    {
   // Access each column field like: cursor.current.MyFieldName
   trace(cursor.current.MyFieldName);
   // Obviously don't forget to move to next row:
   cursor.moveNext();
    }