1) table edit use rules
2) fix selectedRowIndex to selectedIndex
3) add setCellText and updateRowAt, tested for IE9