6 writes to EditingControl
System.Windows.Forms (6)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
2661EditingControl = _latestEditingControl; 2667EditingControl = (Control)Activator.CreateInstance(editControlType)!; 5611EditingControl = null; 6241EditingControl = null; 26785EditingControl = _cachedEditingControl; 27098EditingControl = null;
186 references to EditingControl
Accessibility_Core_App (1)
DataControls.cs (1)
38DataGridViewComboBoxEditingControl cbox = dataGridView1.EditingControl as DataGridViewComboBoxEditingControl;
System.Windows.Forms (179)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (7)
1832return EditingControl is not null 2174if (EditingControl is not null) 2177return EditingControl.Bounds.Contains(ptMouse); 2224internal AccessibleObject? EditingControlAccessibleObject => EditingControl?.AccessibilityObject; 2736if (EditingControl is not null 2865=> EditingControl is not null || _dataGridViewState1[State1_CurrentCellInEditMode]; 2909|| (EditMode != DataGridViewEditMode.EditOnEnter && EditingControl is not null)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (127)
2662Debug.Assert(((IDataGridViewEditingControl)EditingControl).EditingControlDataGridView == this); 2666Debug.Assert(EditingControl is null); 2668Debug.Assert(EditingControl is not null); 2670((IDataGridViewEditingControl)EditingControl).EditingControlDataGridView = this; 2678Debug.Assert(EditingControl is not null); 2679if (string.IsNullOrEmpty(EditingControl.AccessibleName)) 2681EditingControl.AccessibleName = SR.DataGridView_AccEditingControlAccName; 2684EditingControl.ImeMode = ImeMode; 2686((IDataGridViewEditingControl)EditingControl).EditingControlRowIndex = _ptCurrentCell.Y; 2692Debug.Assert(EditingControl is not null); 2694DataGridViewEditingControlShowingEventArgs dgvese = new(EditingControl, dataGridViewCellStyle); 2697if (_editingPanel is null || EditingControl is null) 2703((IDataGridViewEditingControl)EditingControl).ApplyCellStyleToEditingControl(dgvese.CellStyle); 2716if (_editingPanel is null || EditingControl is null) 2722((IDataGridViewEditingControl)EditingControl).PrepareEditingControlForEdit(selectAll); 3064if (endEdit && EditMode != DataGridViewEditMode.EditOnEnter && EditingControl is not null) 3086if (EditingControl is not null) 3088((IDataGridViewEditingControl)EditingControl).EditingControlFormattedValue = _uneditedFormattedValue; 3089((IDataGridViewEditingControl)EditingControl).EditingControlValueChanged = false; 3122if (EditingControl is not null) 3124((IDataGridViewEditingControl)EditingControl).PrepareEditingControlForEdit(selectAll: true); 3175if (EditingControl is not null) 3177((IDataGridViewEditingControl)EditingControl).EditingControlValueChanged = false; 3244if (EditingControl is not null) 3247if (((IDataGridViewEditingControl)EditingControl).RepositionEditingControlOnValueChange) 3867Debug.Assert(((EditingControl is not null && ((IDataGridViewEditingControl)EditingControl).EditingControlValueChanged) 3905if (EditingControl is not null) 3907formattedValue = ((IDataGridViewEditingControl)EditingControl).GetEditingControlFormattedValue(context); 3943if (EditingControl is not null) 3945((IDataGridViewEditingControl)EditingControl).EditingControlValueChanged = false; 5216if ((!onlyIfGridHasFocus || Focused) && EditingControl is not null) 5219EditingControl.Focus(); 5610EditingControl?.Dispose(); 5743if (sender == EditingControl && EditingControl is not null) 5745adjustedX += EditingControl.Location.X; 5746adjustedY += EditingControl.Location.Y; 5952Debug.Assert(sender == EditingControl || sender == _editingPanel); 5962Debug.Assert(sender == EditingControl || sender == _editingPanel); 5972Debug.Assert(sender == EditingControl || sender == _editingPanel); 5978Debug.Assert(sender == EditingControl || sender == _editingPanel); 5984Debug.Assert(sender == EditingControl || sender == _editingPanel); 5990Debug.Assert(sender == EditingControl || sender == _editingPanel); 5993Debug.Assert(EditingControl is not null); 5997CursorInternal = ((IDataGridViewEditingControl)EditingControl).EditingPanelCursor; 6010Debug.Assert(sender == EditingControl || sender == _editingPanel); 6013Debug.Assert(EditingControl is not null); 6032Debug.Assert(sender == EditingControl || sender == _editingPanel); 6038Debug.Assert(sender == EditingControl || sender == _editingPanel); 6223if (EditingControl is not null) 6238ImeMode editingControlImeMode = EditingControl.CachedImeMode; // If in restricted mode, ImeMode will be Disable. 6239_latestEditingControl = EditingControl; 9726Debug.Assert(EditingControl is not null); 9735((IDataGridViewEditingControl)EditingControl).EditingControlValueChanged = false; 10056if (EditingControl is not null && _dataGridViewState1[State1_ForwardCharMessage]) 10435if (EditingControl is not null 10442EditingControl.Invalidate(); 10443EditingControl.Update(); 10503if (EditingControl is not null 10510EditingControl.Invalidate(); 10511EditingControl.Update(); 10526if (dirty && EditingControl is not null && ((IDataGridViewEditingControl)EditingControl).RepositionEditingControlOnValueChange) 11132if (EditingControl is not null) 13004if (repositionEditingControl && EditingControl is not null) 13434if (EditingControl is not null) 13907if (EditingControl is not null) 13965if (EditingControl is not null) 14509if (EditingControl is not null) 14912if (EditingControl is not null) 14988if (EditingControl is not null && EditingControl.ContainsFocus) 15791if (EditingControl is not null) 16361&& EditingControl is not null) 18179if (EditingControl is not null) 18229if (EditingControl is not null) 18378if (EditingControl is not null) 18688if (_ptCurrentCell.X != -1 && dataGridViewRow.Index == _ptCurrentCell.Y && EditingControl is not null) 19011if (EditingControl is not null) 19031if (!BecomingActiveControl && (EditingControl is null || !EditingControl.BecomingActiveControl)) 19725if (repositionEditingControl && EditingControl is not null) 19782Debug.Assert(EditingControl is not null); 19920if (EditingControl is not null) 20098if (EditingControl is not null) 21901if (EditingControl is not null) 21903PInvokeCore.SendMessage(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal); 21917if (EditingControl is not null) 21919PInvokeCore.SendMessage(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal); 21963if (EditingControl is not null && (m.MsgInternal == PInvokeCore.WM_KEYDOWN || m.MsgInternal == PInvokeCore.WM_SYSKEYDOWN)) 21966((IDataGridViewEditingControl)EditingControl).EditingControlWantsInputKey(ke.KeyData, dataGridViewWantsInputKey); 25286if (EditingControl is IDataGridViewEditingControl dataGridViewEditingControl) 25467if (EditingControl is not null) 25471if (((IDataGridViewEditingControl)EditingControl).RepositionEditingControlOnValueChange) 25476((IDataGridViewEditingControl)EditingControl).PrepareEditingControlForEdit(selectAll: true); 25477((IDataGridViewEditingControl)EditingControl).EditingControlValueChanged = false; 26342if (EditingControl is not null && (Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0) 26786((IDataGridViewEditingControl)EditingControl).EditingControlRowIndex = rowIndex; 26917if (EditingControl is not null) 26919((IDataGridViewEditingControl)EditingControl).EditingControlRowIndex = rowIndex; 27087if (EditingControl is not null) 27095_cachedEditingControl = EditingControl; 28820Debug.Assert(EditingControl is not null); 28821EditingControl.Click -= EditingControls_Click; 28822EditingControl.DoubleClick -= EditingControls_DoubleClick; 28823EditingControl.MouseClick -= EditingControls_MouseClick; 28824EditingControl.MouseDoubleClick -= EditingControls_MouseDoubleClick; 28825EditingControl.MouseDown -= EditingControls_MouseDown; 28826EditingControl.MouseEnter -= EditingControls_MouseEnter; 28827EditingControl.MouseLeave -= EditingControls_MouseLeave; 28828EditingControl.MouseMove -= EditingControls_MouseMove; 28829EditingControl.MouseUp -= EditingControls_MouseUp; 29019if (EditingControl is not null) 29088if (EditingControl is not null) 29921Debug.Assert(EditingControl is not null); 29922EditingControl.Click += EditingControls_Click; 29923EditingControl.DoubleClick += EditingControls_DoubleClick; 29924EditingControl.MouseClick += EditingControls_MouseClick; 29925EditingControl.MouseDoubleClick += EditingControls_MouseDoubleClick; 29926EditingControl.MouseDown += EditingControls_MouseDown; 29927EditingControl.MouseEnter += EditingControls_MouseEnter; 29928EditingControl.MouseLeave += EditingControls_MouseLeave; 29929EditingControl.MouseMove += EditingControls_MouseMove; 29930EditingControl.MouseUp += EditingControls_MouseUp; 30085if (EditingControl is not null) 30088PInvokeCore.SendMessage(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (23)
1049if (dataGridView?.EditingControl is null) 1054if (dataGridView.EditingControl.ParentInternal is not null) 1056if (dataGridView.EditingControl.ContainsFocus) 1058if (dataGridView.GetContainerControl() is ContainerControl cc && (dataGridView.EditingControl == cc.ActiveControl || dataGridView.EditingControl.Contains(cc.ActiveControl))) 1071Debug.Assert(dataGridView.EditingControl.ParentInternal == dataGridView.EditingPanel); 1072Debug.Assert(dataGridView.EditingPanel.Controls.Contains(dataGridView.EditingControl)); 1073dataGridView.EditingPanel.Controls.Remove(dataGridView.EditingControl); 1074Debug.Assert(dataGridView.EditingControl.ParentInternal is null); 1093Debug.Assert(dataGridView.EditingControl.ParentInternal is null); 1117Debug.Assert(DataGridView?.EditingControl is not null); 1118Type editingControlType = DataGridView.EditingControl.GetType(); 1490IDataGridViewEditingControl? dataGridViewEditingControl = (IDataGridViewEditingControl?)DataGridView.EditingControl; 2464if (dgv is null || dgv.EditingControl is null) 2471if (dgv.EditingControl.ParentInternal is null) 2474dgv.EditingControl.CausesValidation = dgv.CausesValidation; 2476dgv.EditingControl.Visible = true; 2481dgv.EditingPanel.Controls.Add(dgv.EditingControl); 2485Debug.Assert(dgv.EditingControl.ParentInternal == dgv.EditingPanel); 2712DataGridView.EditingControl is not null) 3763if (DataGridView?.EditingControl is not null) 3767DataGridView.EditingControl.Location = new Point(editingControlBounds.X, editingControlBounds.Y); 3772DataGridView.EditingControl.Size = new Size(editingControlBounds.Width, editingControlBounds.Height);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (4)
399_owner.DataGridView.EditingControl is not null && 404return _owner.DataGridView.EditingControl.AccessibilityObject; 420_owner.DataGridView.EditingControl is not null && 666_owner.DataGridView.EditingControl is not null)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (6)
515EditingComboBox = DataGridView.EditingControl as DataGridViewComboBoxEditingControl; 712if (dgv is null || dgv.EditingControl is null) 1258DataGridView.EditingControl is not null); 1261if (DataGridView.EditingControl is ComboBox comboBox) 1332EditingComboBox = DataGridView.EditingControl as DataGridViewComboBoxEditingControl; 1924bool cellEdited = cellCurrent && DataGridView.EditingControl is not null;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.DataGridViewComboBoxEditingControlAccessibleObject.cs (1)
37&& editingControl.EditingControlDataGridView?.EditingControl == owner
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (10)
97EditingTextBox = DataGridView!.EditingControl as DataGridViewTextBoxEditingControl; 122if (dataGridView?.EditingControl is null) 127if (dataGridView.EditingControl is TextBox textBox) 143if (DataGridView.EditingControl is TextBox txtEditingControl) 511DataGridView.EditingControl is not null); 514if (DataGridView.EditingControl is TextBox textBox) 528EditingTextBox = DataGridView.EditingControl as DataGridViewTextBoxEditingControl; 677bool cellEdited = cellCurrent && DataGridView.EditingControl is not null; 798DataGridView!.EditingControl!.Location = new Point(editingControlBounds.X, editingControlBounds.Y); 799DataGridView.EditingControl.Size = new Size(editingControlBounds.Width, editingControlBounds.Height);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObject.cs (1)
43&& editingControl.EditingControlDataGridView?.EditingControl == owner
System.Windows.Forms.Tests (6)
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (1)
128Assert.Null(control.EditingControl);
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (1)
152Assert.Null(control.EditingControl);
System\Windows\Forms\DataGridViewCellTests.cs (4)
4760Assert.NotNull(dataGridView.EditingControl.AccessibilityObject.Parent); 4761Assert.Same(cell.AccessibilityObject, dataGridView.EditingControl.AccessibilityObject.Parent); 4769Assert.NotNull(dataGridView.EditingControl.AccessibilityObject.Parent); 4770Assert.Same(cell.AccessibilityObject, dataGridView.EditingControl.AccessibilityObject.Parent);