2009-03-06 Ivan N. Zlatev <contact@i-nz.net>
authorIvan Zlatev <ivan@ivanz.com>
Fri, 6 Mar 2009 23:13:37 +0000 (23:13 -0000)
committerIvan Zlatev <ivan@ivanz.com>
Fri, 6 Mar 2009 23:13:37 +0000 (23:13 -0000)
commit1176505c1ef298c582d5a291625d9964c7b20998
treebdd2e02132769c6b3c9d7c001b8b1d136b81d74f
parente1217c7696c9d2d4b4d3e4458fd483527dd76653
2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridView.cs: Be compatible with MS in that the scroll to
selection has a synchronous effect. The trick here is that in
order to avoid unnecessary calculations each time a row/column
is added/removed we recalculate the whole grid size just before
just before the scroll to selection.
[Fixes bug #482478]

svn path=/trunk/mcs/; revision=128806
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DataGridViewTest.cs