generic div based grid update