refreshing number of visible rows after grid resize