save OID instead of type in grid