Hello.

I have a propertygrid in a usercontrol which I have placed on a form. I assign a class to this property grid in the control's constructor and it displays the properties of my class with no problem. I then invoke a method on the control which updates the class displayed in the propertygrid. When I either refresh or reassign to SelectedObject, the propertygrid fails to show any change in the underlying class.

My apologies if this has been covered before - I did do search, but failed to find any posts for it (or failed to recognise them if I did :)

Thanks,

John

Re: PropertyGrid in UserControl doesn't reflect changes to displayed class by Javier

Javier
Fri Feb 27 04:51:54 CST 2004


"John" <anonymous@discussions.microsoft.com> escribió en el mensaje
news:0B024DD2-2A8F-495F-A0D8-77FFB42F2AF9@microsoft.com...
> Hello.
>
> I have a propertygrid in a usercontrol which I have placed on a form. I
assign a class to this property grid in the control's constructor and it
displays the properties of my class with no problem. I then invoke a method
on the control which updates the class displayed in the propertygrid. When I
either refresh or reassign to SelectedObject, the propertygrid fails to show
any change in the underlying class.
>
> My apologies if this has been covered before - I did do search, but failed
to find any posts for it (or failed to recognise them if I did :)
>
> Thanks,
>
> John

myPropertyGrid.Refresh() worked for me

Javier Campos