Sudoku is a logic-based, combinatorial number-placement puzzle. In standard sudoku, the objective is to fill a 9×9 grid with digits so that each column, each row, and each of the nine 3×3 subgrids that compose the grid (also called "boxes", "blocks", or "regions") contains all of the digits from 1 to 9. The puzzle setter provides a partially completed grid, which for a well-posed puzzle has a single solution.

As all the numbers from 1 to 9 are used in each and every single row they would add up as such:

1+2+3+4+5+6+7+8+9 = 45

Therefore the nine numbers in a single row would add up to 45.

More Info: en.wikipedia.org