Carla,
Are you sure the table/cursor the grid needs is open before you call AddObject?
>I define a grid and saved as a classe, then i include this control to my form with addobject() in the activate event of my pageframe, but the grid lost all it´s properties colors and positions. Why this happen ?