setgridcell function

Set the value of a grid cell