Moves the row from the original position to a new position.
Throws the eInvalidIndex exception if the from or to indices are not valid. If the from and to indices are equal, exits the function.