Fixed longer length issue of the grid view