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 Data Binding / March 2008

Tip: Looking for answers? Try searching our database.

DataBinding in .Net 1.1, did it exist?  If so, how does it work?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cartoper - 31 Mar 2008 16:06 GMT
I have used data binding in .Net 2.0 and love it, from what I
understand what I used in 2.0 was new.  Today I am working with .Net
1.1 and wondering how to wire things up correctly...

There is a PropertyGrid that has had it's SelectedObject set to a data
class.  From time to time the values of this selected object will
change outside of the PropertyGrid.  What needs to be wired in so the
PropertyGrid knows when the values change in the data class?
Bob Powell [MVP] - 31 Mar 2008 16:48 GMT
Databinding has existed since the first version of .Net.

PropertyGrid isn't a true databound control in the same sense that
DataGridView is for example.
As a consequence it doesn't use the INotifyPropertyChanged or
<property>Changed events exposed by various objects.

PropertyGrid needs to be refreshed when you make a change to an object
externally. You can subscribe to the INotifyPropertyChanged or
<property>Changed yourself and just refresh the property grid.

Signature

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

>I have used data binding in .Net 2.0 and love it, from what I
> understand what I used in 2.0 was new.  Today I am working with .Net
[quoted text clipped - 4 lines]
> change outside of the PropertyGrid.  What needs to be wired in so the
> PropertyGrid knows when the values change in the data class?

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.