468,765 Members | 1,184 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

Updating a PropertyGrid

Is there any way to tell a Windows.Forms.PropertyGrid to
update the values for the properties that it is
displaying? I am having trouble getting the PropertyGrid
to update when I make changes to the SelectedObject's
properties outside of the PropertyGrid.

If I use the PropertyGrid to change the SelectedObject's
properties then everything works as expected (even when
one property causes another property to change, etc.).
But, if I change a property value programically then the
PropertyGrid does not update (even though the appropriate
PropertyChanged event was fired).

A method that is used to set the value programically
might look something like this:

Sub SetLeft(ByVal value As Single)
If (Me._Left = value) Then Exit Sub
Me._Left = value
Call Me.OnLeftChanged()
End Sub

Thanks for any help.
Lance
Nov 20 '05 #1
1 2357
Hi Lance,

You may try to call the
PropertyGrid1.Refresh()
to see if the problem persists.

If you have any problem, please post in here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Terry | last post: by
3 posts views Thread by Dave Girvitz | last post: by
reply views Thread by vidalsasoon | last post: by
1 post views Thread by ANDRES BECERRA | last post: by
6 posts views Thread by Steve Teeples | last post: by
4 posts views Thread by phcmi | last post: by
3 posts views Thread by =?Utf-8?B?U3RldmVU?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.