If the GRID-SNAP attribute is TRUE, when widgets are moved or resized they align with (snap to) the closest grid points in the frame. This alignment occurs whether or not the grid points are visible (determined by the GRID-VISIBLE attribute).
The distance between grid points (vertical and horizontal grid units) is defined by the GRID-UNIT-HEIGHT-CHARS, GRID-UNIT-HEIGHT-PIXELS, GRID-UNIT-WIDTH-CHARS, and GRID-UNIT-WIDTH-PIXELS attributes.