2008-11-24 Jonathan Pobst <monkey@jpobst.com>
authorJonathan Pobst <monkey@jpobst.com>
Mon, 24 Nov 2008 18:31:48 +0000 (18:31 -0000)
committerJonathan Pobst <monkey@jpobst.com>
Mon, 24 Nov 2008 18:31:48 +0000 (18:31 -0000)
commitfe228780327d39323efaeda0013d6de909e1c3ea
treea18246faffadb6f05aee2515e9b370da0d67624a
parent465edee5d247bc16a00738436ba3104ec3d47b49
2008-11-24  Jonathan Pobst  <monkey@jpobst.com>

* DataGridView.cs: Listen for a DataTable's TableCleared event so we
can clear ourselves when it is raised, we don't have a newrowindex
if we don't have any columns.
* DataGridViewRowCollection.cs: Ensure we always delete all the rows,
re-index after each delete so the NewRow will have the correct index.
[Fixes bug #448005]

2008-11-24  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewDataBindingTest.cs: Flush and add test for bug #448005.
* DataGridViewRowCollectionTest.cs: Add test for bug #448005.

svn path=/trunk/mcs/; revision=119826
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridViewRowCollection.cs
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DataGridViewDataBindingTest.cs
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DataGridViewRowCollectionTest.cs