Update grid row margins