2007-04-19 Chris Toshok <toshok@ximian.com>
authorChris Toshok <toshok@novell.com>
Mon, 23 Apr 2007 15:22:12 +0000 (15:22 -0000)
committerChris Toshok <toshok@novell.com>
Mon, 23 Apr 2007 15:22:12 +0000 (15:22 -0000)
commit53acaa11e14f68f78658ca6afa85129472715146
tree713b2bbe0de515d5ead3c9edcf34fc8df77d2fe2
parent94f6862bf8c656cf0573e67fb4db9bc11f5b01ba
2007-04-19  Chris Toshok  <toshok@ximian.com>

* DataColumnCollection.cs (Add): the Element in our
CollectionChangedEventArgs should be the column, not the
collection.  Also, add an event handler for the column's
PropertyChanged event so we can propagate metadata changes.
(Remove): Analogous change to the CollectionChangedEventArgs as in
Add.  Also, unhook the column's PropertyChanged event.
(OnCollectionmetaDataChanged): emit our new event.
(ColumnPropertyChanged): called when the column's ColumnName
property changes.  Emit the proper CollectionChangeEvent.

* DataView.cs (ColumnCollectionChanged): fix up the comment about
CollectionChangeAction.Refresh, and make explicit what generates
it.
(RegisterEventHandlers): hook up
DataColumnCollectoin.CollectionMetaDataChanged.
(RegisterEventHandlers): unhook
DataColumnCollectoin.CollectionMetaDataChanged.

svn path=/trunk/mcs/; revision=76117
mcs/class/System.Data/System.Data/ChangeLog
mcs/class/System.Data/System.Data/DataColumnCollection.cs
mcs/class/System.Data/System.Data/DataView.cs
mcs/class/System.Data/Test/System.Data/DataColumnCollectionTest2.cs
mcs/class/System.Data/Test/System.Data/DataViewTest.cs