Tab operation

Hi, My default operation of tab is not working so i wrote custom operation for it

var currentCellData = this.getSelectedId(true);
var nextColumn = currentCellData[0].column.slice(0,15)+parseInt(currentCellData[0].column.slice(15))+1);
var nextId = currentCellData[0].id.slice(0,29)+parseInt(currentCellData[0].id.slice(29))+1);
dtable.select(currentCellData[0].row, nextColumn);

Though the control goes to next cell the data in the next cell will be taken hidden , i want it to focus and then on entering number it should disapper showing the newly entered number.
How can i make this happen?