This depends on how you made your grid.
If you are using Tilemap, see SnapX(x) and SnapY(y) expressions.
If your grid is a bunch of sprites, you can use "Pick nearest"
Or use a formula like this:
newX = round(Character.X/16) * 16
newY = round(Character.Y/16) * 16