v3 of GridHelper.cs