getIdByIndex
in case of error(there is no row which has some index), throws IndexOutOfBoundsException instead.