Skip to content

Commit

Permalink
Fix DataGridView.Dispose test regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
ulatekh authored and thomasgoldstein committed Jul 29, 2012
1 parent 821d9e4 commit f733665
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f733665

Please sign in to comment.