Refresh a single GridItem on a PropertyGrid

C

Chris

Hi,

does anybody know how to refresh single GridItems of a PropertyGrid
control? I know I can use PropertyGrid.Refresh() to update all
GridItems, but this will steal the focus when you are editing one of
the GridItem values.

I need to find a way to update the displayed value of a single
GridItem (e. g. Property X) without interrupting the user with his
editing activities on another GridItem (e. g. Property Y) of the same
PropertyGrid.

Best regards,
Chris
 
G

Guest

I dont think the PropertyGrid is capable of this but I think if your objects
implement IPropertyChanged interface then that is probably how the PG would
do this itself.
 
Joined
Nov 8, 2010
Messages
2
Reaction score
0
single GridItem refresh (PropertyGrid)

Hello,

I've got the same problem... Did you find a solution?

I think it is possible because, as example, visual studio does it when mousewheeling "Dock" property of any control (Usercontrol, textbox...) in the designer : positions and width changes wheras Dock properties stays edited...

I tried implementing PropertyChanged event without succes : it needs to call propertygrid's refresh() method , leading to lose edition mode.

Thank you for your answer
 

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