Can the grid line cells adjusted to fit the components width?

We want the grid cells to be adjusted to fit the width of the nodes on the screen? As soon as we drag and drop onto the screen we want it to align to the grid. Can this be achieved using GoJS?

It’s not common, but you can adjust the size of the grid cells, potentially using a modelData binding. That’s what we do in the older Floorplanner sample.

Yes, you can have grid snapping. See this section in the Grid intro page.