Added selectedtiles method in grid