Skip to content

Commit 6f5606c

Browse files
author
Mirroring
committed
Merge commit 'a29c04aaaa1ddf27eb7f81d925246a01eac52e89'
2 parents dd264b5 + a29c04a commit 6f5606c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27460,7 +27460,8 @@ protected virtual bool SetCurrentCellAddressCore(int columnIndex,
2746027460
{
2746127461
int oldCurrentCellX = _ptCurrentCell.X;
2746227462
int oldCurrentCellY = _ptCurrentCell.Y;
27463-
if (oldCurrentCellX >= 0 &&
27463+
if (IsHandleCreated &&
27464+
oldCurrentCellX >= 0 &&
2746427465
!_dataGridViewState1[State1_TemporarilyResetCurrentCell] &&
2746527466
!_dataGridViewOper[OperationInDispose])
2746627467
{

0 commit comments

Comments
 (0)