Add kgrid snippet