Calculate size of square cell in a grid to make a grid scale correctly on different screens

I’ve been having some difficulty figuring this out, so I need some help.
I have a grid of square cells, and want a fixed size for the grid.

So, say I have a frame with an AspectRatioConstraint inside of it. How could I calculate the size of the grid and the size of the cells in that grid so that it maintains the same amounts of rows and columns on all screen sizes?

Hi, I’m not sure what the problem is. If you’re using an AspectRatioConstraint it should maintain the same size on all screens and the number of rows and columns should remain the same.

If you wanted to find the true size of grid and the cells, you could use AbsoluteSize.