thisform.grid1.column1.dynamicbackcolor='iif(this.parent.name="Form1", rgb(255,0,0), rgb(0,0,255))'You'd think it would turn Blue becase the name of the parent is Grid1, but it evaluates to true(red)! Try this:
thisform.grid1.column1.dynamicbackcolor='iif(this.relativerow>5, rgb(255,0,0), rgb(0,0,255))'A column doesn't have a relative row prop but it doesn't bomb, but if you put in a .Parent it would.