flex air datagrid setfocus cell by cell

Posted by gaurav flex on Stack Overflow See other posts from Stack Overflow or by gaurav flex
Published on 2009-04-16T12:33:32Z Indexed on 2010/03/19 17:01 UTC
Read the original article Hit count: 258

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about flex3

Related posts about air