In Test/System.Data:
commit52c3b98acc50be0b74c9e9c6c8a951fd6cc9ff1a
authorChris Toshok <toshok@novell.com>
Mon, 21 May 2007 04:57:02 +0000 (21 04:57 -0000)
committerChris Toshok <toshok@novell.com>
Mon, 21 May 2007 04:57:02 +0000 (21 04:57 -0000)
tree9da80b6a65ca22637e48f402c096b681324fa34b
parente8dc24997c25e490d2172a774ab31b3748f20a5a
In Test/System.Data:
2007-05-18  Chris Toshok  <toshok@ximian.com>

* DataViewTest.cs (DefaultColumnNameAddListChangedTest): new test
for figuring out the sorts of events raised between 1.1 and 2.0
when you add a column with the default name.

In System.Data:
2007-05-18  Chris Toshok  <toshok@ximian.com>

* DataColumnCollection.cs (Add ()): handle the default name case
in Add(DataColumn).
(Add (string)): same - let Add(DataColumn) handle the default name
setting.
(Add (DataColumn)): in the 1.1 case, we need to add the column's
PropertyChanged handler *before* possibly setting the column name
to the default so we emit the right events (Changed/Added).  In
the 2.0 case, we add the event handler after the name is set, and
therefore only emit the Added event.

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