quering the grid data