mygrd.selectCell question

I’m currently working with Prof Suite 3.0. In the ‘onEditCell’ event I’m checking the value being entered in a particular column and based on the value I want to select a specific different column in the same row. My code snippet in the event handler is as follows:

        if(stage == 2 && cidx == CSTTranType)
        {
            switch(nval)
            {
                case CTExpenseID:
                    grdCshTrans.selectCell(rid,CSTExp,false,false,true,true);
                    break;

            }
        }
       return true

However once the CSTTransType data has been entered the system doesn’t automatically move to col CSTExp.

Please can you tell me what I’m doing wrong?

Thanks

Please, note that the selectCell() method uses row index, not the row ID.
Please, refer to the following snippet:
http://snippet.dhtmlx.com/38e6baa4d

Thanks Sematik. I understand now why it didn’t work.