0 Replies Latest reply on Apr 22, 2009 7:13 AM by gauravgr8

    flex air datagrid setfocus cell by cell

    gauravgr8 Level 1

      Hi all,

      I have a datagrid with custom itemRenderer. Now I need to setfocus int the grid cell by cell. For that I Googled & got a way i.e

      var findrowindex:int = 0;

      //nextButton Click Handler
      var focusedCell: Object = new Object();
      focusedCell
      . columnIndex = 3;
      focusedCell
      . rowIndex = findrowindex;
      dg
      .editedItemPosition = focusedCell;
      dg
      .validateNow( );
      findrowindex
      ++;

      Using this I am able to get focus in a cell but the focus is not moving from one cell to another. Pls suggest me where I am going wrong or suggest me any ther way to achieve this.

      Thanks.