0 Replies Latest reply on Apr 27, 2007 6:40 AM by kega|edwin

    Datagrid itemrenderer NPE

    kega|edwin
      Hi,

      I have a problem with a datagrid and an itemrenderer...

      I have a datagrid with some itemrenderers. it works fine except one thing...

      When i'm editing a row, and press "Enter" then i get the following error:

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.controls::DataGrid/mx.controls:DataGrid::findNextEnterItemRenderer()[C:\dev\flex_201_j a\sdk\frameworks\mx\controls\DataGrid.as:4684]
      at mx.controls::DataGrid/mx.controls:DataGrid::editorKeyDownHandler()[C:\dev\flex_201_ja\sdk \frameworks\mx\controls\DataGrid.as:4657]

      on the itemEditEnd event of the datagrid, i call the datagrid.executeBindings(true) function. If i remove this call i dont get the error above, but some changes in calculated fields in my datagrid are not shown anymore :S

      does anyone have any clue how to fix this problem? and is this something i made wrong? or is it a bug in flex?

      Thanks in advance!

      Edwin