mono/mono — pull request #480 by Shabbafru (2012-10-18 08:27:04+00:00)
Title: DataGridView: Fixed an ArgumentOutOfRangeException when adding rows to a DataGridView

In the `MoveCurrentCell` method, `disp_x` and `disp_y` are not allowed to be 0 if `disp_[x|y] > first_col_index + displayedColumnsCount - 1` and `first_col_index + displayedColumnsCount - 1` evaluates to -1 as this would mean that the subsequent for loop would start at -1 and accessing the `Columns` with this value results in an `ArgumentOutOfRangeException`.