Fix Grid view on more than 1000 patients