Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

PropertyGrid and INotifyPropertyChanged problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 07 Feb 2007 11:09 GMT
Hi,

I've got a problem with the PropertyGrid and the
INotifyPropertyChanged interface. I have a class that implements the
INotifyPropertyChanged and raises the PropertyChanged when a property
of this class is changed. My PropertyGrid is connected to this object
through the SelectedObject property.

My problem is that the PropertyGrid does not get updated when the
object's property value is changed. I can see that the
INotifyPropertyChanged.PropertyChanged is null which means that the
PropertyGrid is not attached to this event.

How can I make the PropertyGrid listen to
INotifyPropertyChanged.PropertyChanged events?

Best regards,
Chris
VisualHint - 07 Feb 2007 13:23 GMT
Hello Chris,

Look at the answer of Linda in this thread:

http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms/br
owse_thread/thread/a2f96848880e8788/e8dfa4ce1e3b8b8a


Best regards,

Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart PropertyGrid for .Net and MFC
Microsoft PropertyGrid Resource List - http://
www.propertygridresourcelist.com

> Hi,
>
[quoted text clipped - 13 lines]
> Best regards,
> Chris
Chris - 08 Feb 2007 11:48 GMT
Hi Nicolas,

thanks for your posting.

Linda's solution seems to work, but only if there are other bindings
active. If the PropertyGrid and the DemoCustomer are the only citizens
on a Form, the PropertyGrid update still doesn't work when a
DemoCustomer property is modified. But if you add additional databound
controls to the form that are bound to any property of the
DemoCustomer object, also the PropertyGrid is getting updated. Very
strange behaviour.

Best regards,
Chris

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.