generic grid update