31 writes to CurrentCell
System.Windows.Forms (9)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1885
CurrentCell
= null;
1924
CurrentCell
= null;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
11458
CurrentCell
= null;
13196
CurrentCell
= null;
13228
CurrentCell
= null;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
584
_owner.DataGridView.
CurrentCell
= _owner; // Do not change old selection
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (1)
102
dataGridView.
CurrentCell
= dataGridViewCell;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (2)
421
dataGridView.
CurrentCell
= _owningDataGridViewRow.Cells[dataGridView.CurrentCell.OwningColumn.Index]; // Do not change old selection
428
dataGridView.
CurrentCell
= _owningDataGridViewRow.Cells[firstVisibleCell]; // Do not change old selection
System.Windows.Forms.Tests (21)
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (1)
35
dataGridView.
CurrentCell
= cell;
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
212
dataGridView.
CurrentCell
= cell;
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxCellAccessibleObjectTests.cs (2)
31
dataGridView.
CurrentCell
= dataGridView.Rows[0].Cells[0];
65
dataGridView.
CurrentCell
= dataGridView.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (1)
123
control.
CurrentCell
= control.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (2)
83
control.
CurrentCell
= currentCell;
101
control.
CurrentCell
= currentCell;
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (2)
86
control.
CurrentCell
= currentCell;
104
control.
CurrentCell
= currentCell;
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (1)
147
control.
CurrentCell
= control.Rows[0].Cells[0];
System\Windows\Forms\DataGridViewCellTests.cs (1)
6470
dataGridView.
CurrentCell
= cell;
System\Windows\Forms\DataGridViewTests.cs (10)
3393
_dataGridView.
CurrentCell
= _dataGridView[0, 0];
3397
_dataGridView.
CurrentCell
= _dataGridView[0, 1];
3417
_dataGridView.
CurrentCell
= _dataGridView[0, 0];
3423
_dataGridView.
CurrentCell
= _dataGridView[0, 1];
3637
_dataGridView.
CurrentCell
= _dataGridView[0, 0];
3643
_dataGridView.
CurrentCell
= _dataGridView[0, 1];
3665
_dataGridView.
CurrentCell
= _dataGridView[0, 0];
3669
_dataGridView.
CurrentCell
= _dataGridView[0, 1];
4066
_dataGridView.
CurrentCell
= _dataGridView.Rows[_dataGridView.NewRowIndex].Cells[0];
4070
_dataGridView.
CurrentCell
= _dataGridView.Rows[_dataGridView.NewRowIndex].Cells[1];
TestPassApp (1)
DataControls.cs (1)
36
dataGridView1.
CurrentCell
= dataGridView1.Rows[0].Cells[0];
51 references to CurrentCell
PresentationUI (5)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (5)
530
if (
CurrentCell
== null)
544
if (
CurrentCell
.ColumnIndex == RightsTableColumnToIndex(RightsTableColumn.AllowOwner))
547
DataGridViewDisableCheckBoxCell cell =
CurrentCell
as DataGridViewDisableCheckBoxCell;
569
InvalidateColumn(
CurrentCell
.ColumnIndex);
574
InvalidateCell(
CurrentCell
);
System.Windows.Forms (44)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (2)
141
if (this.TryGetOwnerAs(out DataGridView? owner) && owner.Focused && owner.
CurrentCell
is not null)
143
return owner.
CurrentCell
.AccessibilityObject;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (2)
45
DataGridViewCell? currentCell = owner.
CurrentCell
;
86
=> (VARIANT)(_ownerDataGridView.TryGetTarget(out var owner) && owner.
CurrentCell
is not null),
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (22)
48
DataGridViewCell? currentCell =
CurrentCell
;
14569
if (
CurrentCell
is not null && (ShowCellToolTips || (ShowCellErrors && !string.IsNullOrEmpty(
CurrentCell
?.ErrorText))))
14571
ActivateToolTip(activate: false, toolTipText: string.Empty,
CurrentCell
.ColumnIndex,
CurrentCell
.RowIndex);
14572
KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(
CurrentCell
);
15205
if (
CurrentCell
is not null && (ShowCellToolTips || (ShowCellErrors && !string.IsNullOrEmpty(
CurrentCell
.ErrorText))))
15207
ActivateToolTip(activate: false, toolTipText: string.Empty,
CurrentCell
.ColumnIndex,
CurrentCell
.RowIndex);
15208
KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(
CurrentCell
);
15853
if (
CurrentCell
is not null)
15855
KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(
CurrentCell
);
16736
return ShowFocusCues &&
CurrentCell
is null;
22047
if (
CurrentCell
is null || _ptCurrentCell.X == -1 || _ptCurrentCell.Y == -1)
22052
DataGridViewCell dataGridViewCell =
CurrentCell
;
27370
if (
CurrentCell
is null)
27375
editingControlAccessibleObject.SetParent(
CurrentCell
.AccessibilityObject);
27377
CurrentCell
.AccessibilityObject.SetDetachableChild(editingControlAccessibleObject);
27378
CurrentCell
.AccessibilityObject.RaiseStructureChangedEvent(StructureChangeType.StructureChangeType_ChildAdded, editingControlAccessibleObject.RuntimeId);
28233
if (
CurrentCell
is not null)
28235
KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(
CurrentCell
);
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (3)
48
_parentAccessibleObject.TryGetOwnerAs(out DataGridView? owner) && owner.
CurrentCell
is not null && owner.
CurrentCell
.Selected
49
? owner.
CurrentCell
.AccessibilityObject
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (5)
134
if (_owner.DataGridView is not null && _owner == _owner.DataGridView.
CurrentCell
)
280
Debug.Assert(dataGridView.
CurrentCell
== dataGridViewCell, "the result of selecting the cell should have made this cell the current cell");
400
_owner.DataGridView.
CurrentCell
== _owner &&
421
_owner.DataGridView.
CurrentCell
== _owner)
663
if (_owner.DataGridView.
CurrentCell
== _owner &&
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
1184
DataGridView.
CurrentCell
is not null && DataGridView.
CurrentCell
.Selected &&
1185
DataGridView.
CurrentCell
.OwningColumn == OwningColumn;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (6)
314
dataGridView.
CurrentCell
is not null &&
315
dataGridView.
CurrentCell
.RowIndex == _owningDataGridViewRow.Index)
317
return dataGridView.
CurrentCell
.AccessibilityObject;
419
if (dataGridView.
CurrentCell
is not null && dataGridView.
CurrentCell
.OwningColumn is not null)
421
dataGridView.CurrentCell = _owningDataGridViewRow.Cells[dataGridView.
CurrentCell
.OwningColumn.Index]; // Do not change old selection
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
86
DataGridViewCell? currentCell = _owningDataGridViewRow.DataGridView?.
CurrentCell
;
System.Windows.Forms.Tests (2)
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (1)
131
Assert.Equal(control.
CurrentCell
.AccessibilityObject, actual);
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (1)
155
Assert.Equal(control.
CurrentCell
.AccessibilityObject, actual);