get and set grid values