Refresh Property Grid Values

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span id="_ctl0_MainContent_PostFlatView <span>Sorry, but I had to repost this in the C# forum because no one answered me in the Windows Forms forum.

Say I have an object, "oFoo", and I assigned oFoo to a PropertyGrid on my form.

oFoo
also has a .CurrentValue property. If I have a TrackBar (tBar) on my
form, and when the user scrolls the TrackBar, oFoos .CurrentValue is
updated respectively. How do I refresh the CurrentValue so that it
shows up correctly in the PropertyGrid? Right now, the only way I can
do that is by refreshing the entire PropertyGrid, but I would think
there would be a better, more standard way of doing this.

<span id="_ctl0_MainContent_PostFlatView <span>Ive tried using RefreshProperties(RefreshProperties.All), but it doesnt even refresh the value in the property grid, so Im pretty stuck here and would appreciate any and
all help anyone could provide.


View the full article
 
Back
Top