Skip to content

Commit ee12dd5

Browse files
author
Mirroring
committed
Merge commit '1390aa6f9142787a953baf7989be1353c6c17350'
2 parents edcde01 + 1390aa6 commit ee12dd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/System.Windows.Forms/src/System/Windows/Forms/Controls/DataGridView/DataGridView.Methods.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27484,7 +27484,8 @@ protected virtual bool SetCurrentCellAddressCore(int columnIndex,
2748427484
{
2748527485
int oldCurrentCellX = _ptCurrentCell.X;
2748627486
int oldCurrentCellY = _ptCurrentCell.Y;
27487-
if (oldCurrentCellX >= 0
27487+
if (IsHandleCreated
27488+
&& oldCurrentCellX >= 0
2748827489
&& !_dataGridViewState1[State1_TemporarilyResetCurrentCell]
2748927490
&& !_dataGridViewOper[OperationInDispose])
2749027491
{

0 commit comments

Comments
 (0)