[MWF] Clear currentCell before disposing (fixes #19567)
authorEberhard Beilharz <eb1@sil.org>
Tue, 6 May 2014 17:09:29 +0000 (19:09 +0200)
committerEberhard Beilharz <eb1@sil.org>
Tue, 6 May 2014 17:09:29 +0000 (19:09 +0200)
commit3505e01e302f9fc9a4b6c275218c60175064d729
treedf4a5692e7d2d7143188bf83a791ec6fb83bb3d4
parent414ce39e1df4ae49d26d893dbffc8b982ba3a790
[MWF] Clear currentCell before disposing (fixes #19567)

If currentCell still has a value when we call Columns.Clear() we
might try to end the editing. Because the columns got disposed
before calling Columns.Clear() we get a crash. This patch fixes
the problem by setting currentCell to null.
mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs