From f34f9d670874d00f3d9ed2b9453784c943b5d7f6 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 28 Nov 2014 20:45:35 +0000 Subject: [PATCH] Refresh wxPGProperty after changing its attribute. Closes #16696 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/propgridiface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/propgrid/propgridiface.cpp b/src/propgrid/propgridiface.cpp index f0c24fe020..06c089b862 100644 --- a/src/propgrid/propgridiface.cpp +++ b/src/propgrid/propgridiface.cpp @@ -452,6 +452,12 @@ void wxPropertyGridInterface::DoSetPropertyAttribute( wxPGPropArg id, const wxSt wxPG_PROP_ARG_CALL_PROLOG() p->SetAttribute( name, value ); + // If property is attached to the property grid + // then refresh the view. + if( p->GetParentState() ) + { + RefreshProperty( p ); + } if ( argFlags & wxPG_RECURSE ) {