diff --git a/src/propgrid/propgridpagestate.cpp b/src/propgrid/propgridpagestate.cpp index 55d91115a3..277a071a0a 100644 --- a/src/propgrid/propgridpagestate.cpp +++ b/src/propgrid/propgridpagestate.cpp @@ -1848,8 +1848,17 @@ wxPGProperty* wxPropertyGridPageState::DoInsert( wxPGProperty* parent, int index VirtualHeightChanged(); + // Update values of all parents if they are containers of composed values. property->UpdateParentValues(); + // Update editor controls of all parents if they are containers of composed values. + for( wxPGProperty *p = property->GetParent(); + p && !p->IsRoot() && !p->IsCategory() && p->HasFlag(wxPG_PROP_COMPOSED_VALUE); + p = p->GetParent() ) + { + p->RefreshEditor(); + } + m_itemsAdded = true; return property;