Permalink
Browse files

Fix DataGridView.Dispose test regressions

  • Loading branch information...
ulatekh authored and thomasgoldstein committed Jul 29, 2012
1 parent 821d9e4 commit f73366555005cfad6bbb19f2ab432b0c15adbd0e
Showing with 1 addition and 0 deletions.
  1. +1 −0 mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs
@@ -3388,6 +3388,7 @@ protected virtual DataGridViewRowCollection CreateRowsInstance ()
protected override void Dispose (bool disposing) {
if (disposing) {
+ ClearSelection();
foreach (DataGridViewColumn column in Columns)
column.Dispose();
Columns.Clear();

0 comments on commit f733665

Please sign in to comment.