471,081 Members | 940 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,081 software developers and data experts.

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.
Nov 20 '05 #1
1 2419
Hi Lance,

You may try to call the
to see if the problem persists.

If you have any problem, please post in here.

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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.