0 Replies Latest reply on Dec 4, 2008 7:42 AM by iceflex

    Focus in the DataGrid

      I'm having an issue with moving focus from one DataGridColumn's textInput-itemRenderer to another on the next row.
      Here is my code:

      public function onKeyDown(event:KeyboardEvent):void{
      if(event.keyCode == Keyboard.ENTER){
      var dataGrid:DataGrid = DataGrid(this.owner);
      var index:int = dataGrid.selectedIndex;
      var focusedCell:Object = new Object();
      focusedCell.rowIndex = ++index;
      focusedCell.columnIndex = 6;
      dataGrid.editedItemPosition = focusedCell ;
      I tested it in debugger and the program does reach the code, but the focus doesn't traverse to the next row.
      Can anyone help?