all groups > dotnet windows forms databinding > march 2008 >
You're in the

dotnet windows forms databinding

group:

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


DataBinding in .Net 1.1, did it exist? If so, how does it work? Cartoper
3/31/2008 8:06:58 AM
dotnet windows forms databinding: 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
Re: DataBinding in .Net 1.1, did it exist? If so, how does it work? Bob Powell [MVP]
3/31/2008 5:48:49 PM
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.



--
--
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.


[quoted text, click to view]
AddThis Social Bookmark Button