Retrieves the column values given the column index.