Fix rows range in Grid footer

Fix rows range in Grid footer