Create Flexible Grid Of Points with rows and columns

Hello This is Mahsa,

I want to create a flexible grid of points that objects can placed there, I want the grid have
flexible rows and columns

can anyone help me with this ?
My visualization is this for example

Grid png