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