PropertyGrid in UserControl doesn't reflect changes to displayed class


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
 
Ad

Advertisements

J

Javier Campos

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top