9 writes to CurrentCell
System.Windows.Forms (9)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1891CurrentCell = null; 1930CurrentCell = null;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
11455CurrentCell = null; 13193CurrentCell = null; 13225CurrentCell = 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
49 references to CurrentCell
PresentationUI (5)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (5)
529if (CurrentCell == null) 543if (CurrentCell.ColumnIndex == RightsTableColumnToIndex(RightsTableColumn.AllowOwner)) 546DataGridViewDisableCheckBoxCell cell = CurrentCell as DataGridViewDisableCheckBoxCell; 568InvalidateColumn(CurrentCell.ColumnIndex); 573InvalidateCell(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; 14566if (CurrentCell is not null && (ShowCellToolTips || (ShowCellErrors && !string.IsNullOrEmpty(CurrentCell?.ErrorText)))) 14568ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 14569KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(CurrentCell); 15202if (CurrentCell is not null && (ShowCellToolTips || (ShowCellErrors && !string.IsNullOrEmpty(CurrentCell.ErrorText)))) 15204ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 15205KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(CurrentCell); 15850if (CurrentCell is not null) 15852KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(CurrentCell); 16730return ShowFocusCues && CurrentCell is null; 22038if (CurrentCell is null || _ptCurrentCell.X == -1 || _ptCurrentCell.Y == -1) 22043DataGridViewCell dataGridViewCell = CurrentCell; 27362if (CurrentCell is null) 27367editingControlAccessibleObject.SetParent(CurrentCell.AccessibilityObject); 27369CurrentCell.AccessibilityObject.SetDetachableChild(editingControlAccessibleObject); 27370CurrentCell.AccessibilityObject.RaiseStructureChangedEvent(StructureChangeType.StructureChangeType_ChildAdded, editingControlAccessibleObject.RuntimeId); 28225if (CurrentCell is not null) 28227KeyboardToolTipStateMachine.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;