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