diff --git a/include/wx/propgrid/propgridiface.h b/include/wx/propgrid/propgridiface.h index a553d6dba1..d63f71eeb8 100644 --- a/include/wx/propgrid/propgridiface.h +++ b/include/wx/propgrid/propgridiface.h @@ -1077,6 +1077,14 @@ public: p->SetFlagRecursively(wxPG_PROP_READONLY, set); else p->ChangeFlag(wxPG_PROP_READONLY, set); + + wxPropertyGridPageState* state = p->GetParentState(); + if( state ) + { + // If property is attached to the property grid + // then refresh the view. + RefreshProperty( p ); + } } /** Sets property's value to unspecified.