Solution:
The minimum is achieved by staying on the perimeter of the grid, and the maximum by staying as close to the main diagonal as possible. To see why this is true, tilt the grid 45 degrees:

Now every path must include exactly one number from each row. The nth row consists of the numbers k(n+1−k) for k=1,2,…,n. As a quadratic function of k, this expression is greatest when k=(n+1)/2, and gets smaller as k gets farther from (n+1)/2 in either direction. Thus the smallest number in row n of our tilted grid is the number on either end of the row, which is n, and the largest number in row n is the number closest to the center, which is ⌊2n+1⌋⋅⌈2n+1⌉. By staying on the perimeter of the grid, we may select the smallest entry from every row, and so accumulate the smallest possible total. By staying in the middle, we may select the largest entry from every row and accumulate the largest possible total.
All that remains is to calculate these totals in terms of n.
The minimum total is
(1+2+3+⋯+(n−1))+(n+2n+3n+⋯+n2)=(1+2+⋯+(n−1))+n(1+2+⋯+n)=2n(n−1)+n⋅2n(n+1)=2n(n2+2n−1).
The maximum total is
12+1⋅2+22+2⋅3+⋯+(n−1)⋅n+n2=(12+22+⋯+n2)+(1⋅2+2⋅3+⋯+(n−1)⋅n)=6n(n+1)(2n+1)+2⋅[(22)+(23)+⋯+(2n)]=6n(n+1)(2n+1)+2(3n+1)=6n(n+1)(2n+1)+62(n−1)n(n+1)=6n(n+1)(4n−1)
and we are finished.