Merge pull request #948 from ermshiperete/bug-xamarin-2394
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / DataGridView.cs
index b7e9a1d853cb456c67a5d120212da058499b7f4c..393d5cba9aebfd3d0da99fd14f52067b5b2f70e6 100644 (file)
@@ -3392,6 +3392,7 @@ namespace System.Windows.Forms {
                protected override void Dispose (bool disposing) {
                        if (disposing) {
                                ClearSelection();
+                               currentCell = null;
                                foreach (DataGridViewColumn column in Columns)
                                        column.Dispose();
                                Columns.Clear();