7 Replies Latest reply on Dec 3, 2009 8:26 PM by P.o.l.a.c.o

    DataGrid, how to get the current displayed data for a row number?

    P.o.l.a.c.o Level 1

      I have extended the DataGrid component, I would like to know how could I get the current displayed data for a row number.

      I need this because trying to retrieve it from the ListRowInfo always return null.


      var lri:ListRowInfo = null;
      var dataItems:Array = listContent.listItems;
      for(var i:int=0; i < rowCount;i++){
           lri = listContent.rowInfo[i];



      and because i guess doing dataProvider[i] won't work since "i" goes from 0 to rowCount and dataProvider[i] will always return the same first 0->rowCount items.


      Thanks in advance.