As Neil says, if a cell needs to know its location, it must store it.
Speaking, I do not think that the cell needs to know its location. The grid is responsible for managing the cells, including their location, telling them where to draw themselves, etc. Cells must be responsible for what cells contain - for example, data, formatting data, etc.
Therefore, the cell never needs to know its location in the grid. You may have to do things like drawing itself, but this should be done in terms of the screen coordinates transmitted by the grid. The grid must control which cells are colored and where. Cells should just do what they are told and where.
source share