Changing point numbers in rectangular grid

How can we change the number values given to each point in rectangular grid, numbering the entire first row in even numbers and the second row in odd numbers.