1 Reply Latest reply on Mar 13, 2008 8:53 AM by Gregory Lafrance

    Data Grid set focus problem

    Flex-Issac Level 1
      Hi all,

      When I use DataGrid as edit mode, it has some focus problem. The focus stay in a cell, then press function key in this cell. The title windows would be showed for user selection. Finally, when I want to set the focus back to DataGrid focused cell. The DataGrid always throw exception, I change the editedItemPostion properties in DataGrid callLater(function).

      Thanks,

      The error as follow:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.controls::DataGrid/updateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\ mx\controls\DataGrid.as:1432]
      at mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\ framework\src\mx\controls\listClasses\ListBase.as:3281]
      at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:602]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:675]
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\sr c\mx\core\UIComponent.as:8460]
      at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src \mx\core\UIComponent.as:8403]