abstracting grid view