PropertyGrid in UserControl doesn't reflect changes to displayed class

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
John said:
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
 
Back
Top