Can't get a PropertyGrid to refresh

N

Noah Stein

I've been fighting this for a solid 30 minutes now. When I change the value
of a property outside of the grid, I can't get the grid to change the
display. If I obscure the window behind another window and then return it to
the top, the grid displays the proper value. I call Refresh() on the
PropertyGrid. After that, I've attempted other calls to try to get the
display updated, but all to no avail. Invalidate() and Update(), even in
combination after Refresh(), don't cause the grid to display the new value.
I'm developing using Managed C++ in VS 2005. Does anybody have any ideas?


Thanks,
Noah
 
S

Stoitcho Goutsev \(100\)

Noah,

Noah,

Are using the property grid inside VS (design time) or you are using the
PropertyGrid in you application (not related to VS)?
 
N

Noah Stein

At runtime in my application.

This should have been in the controls group, but I didn't realize I'd
accidentally clicked on regular windowsforms.


-- Noah
 
N

Noah Stein

Ignore my original posting. Something else in the system was intercepting
the repainting after the refresh. Thanks.
 

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