Unreal Engine Var console variable.
LWI.Editor.GridSize [value]
Set via the console (~) or in DefaultEngine.ini / DefaultGame.ini.