6 writes to editingControl
System.Windows.Forms (6)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (6)
2698
this.
editingControl
= this.latestEditingControl;
2704
this.
editingControl
= (Control)SecurityUtils.SecureCreateInstance(editControlType);
5651
this.
editingControl
= null;
6272
this.
editingControl
= null;
26876
this.
editingControl
= this.cachedEditingControl;
27158
this.
editingControl
= null;
138 references to editingControl
System.Windows.Forms (138)
winforms\Managed\System\WinForms\DataGridView.cs (7)
2305
return this.
editingControl
!= null &&
2765
if (this.
editingControl
!= null)
2768
return this.
editingControl
.Bounds.Contains(ptMouse);
2816
return this.
editingControl
;
3444
if (this.
editingControl
!= null &&
3635
return this.
editingControl
!= null || this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode];
3686
(this.EditMode != DataGridViewEditMode.EditOnEnter && this.
editingControl
!= null ||
winforms\Managed\System\WinForms\DataGridViewMethods.cs (131)
2699
Debug.Assert(((IDataGridViewEditingControl)this.
editingControl
).EditingControlDataGridView == this);
2703
Debug.Assert(this.
editingControl
== null);
2705
Debug.Assert(this.
editingControl
!= null);
2707
((IDataGridViewEditingControl)this.
editingControl
).EditingControlDataGridView = this;
2715
Debug.Assert(this.
editingControl
!= null);
2716
if (String.IsNullOrEmpty(this.
editingControl
.AccessibleName))
2718
this.
editingControl
.AccessibleName = SR.GetString(SR.DataGridView_AccEditingControlAccName);
2720
this.
editingControl
.ImeMode = this.ImeMode;
2722
((IDataGridViewEditingControl)this.
editingControl
).EditingControlRowIndex = this.ptCurrentCell.Y;
2728
Debug.Assert(this.
editingControl
!= null);
2730
DataGridViewEditingControlShowingEventArgs dgvese = new DataGridViewEditingControlShowingEventArgs(this.
editingControl
, dataGridViewCellStyle);
2733
if (this.editingPanel == null || this.
editingControl
== null)
2738
((IDataGridViewEditingControl)this.
editingControl
).ApplyCellStyleToEditingControl(dgvese.CellStyle);
2751
if (this.editingPanel == null || this.
editingControl
== null)
2757
((IDataGridViewEditingControl)this.
editingControl
).PrepareEditingControlForEdit(selectAll);
3093
if (endEdit && this.EditMode != DataGridViewEditMode.EditOnEnter && this.
editingControl
!= null)
3114
if (this.
editingControl
!= null)
3116
((IDataGridViewEditingControl)this.
editingControl
).EditingControlFormattedValue = this.uneditedFormattedValue;
3117
((IDataGridViewEditingControl)this.
editingControl
).EditingControlValueChanged = false;
3151
if (this.
editingControl
!= null)
3153
((IDataGridViewEditingControl) this.
editingControl
).PrepareEditingControlForEdit(true /*selectAll*/);
3217
if (this.
editingControl
!= null)
3219
((IDataGridViewEditingControl)this.
editingControl
).EditingControlValueChanged = false;
3283
if (this.
editingControl
!= null)
3286
if (((IDataGridViewEditingControl) this.
editingControl
).RepositionEditingControlOnValueChange)
3888
(this.
editingControl
!= null && ((IDataGridViewEditingControl)this.
editingControl
).EditingControlValueChanged) ||
3923
if (this.
editingControl
!= null)
3925
formattedValue = ((IDataGridViewEditingControl)this.
editingControl
).GetEditingControlFormattedValue(context);
3956
if (this.
editingControl
!= null)
3958
((IDataGridViewEditingControl) this.
editingControl
).EditingControlValueChanged = false;
5215
if ((!onlyIfGridHasFocus || this.Focused) && this.
editingControl
!= null)
5219
this.
editingControl
.FocusInternal();
5648
if (this.
editingControl
!= null)
5650
this.
editingControl
.Dispose();
5802
if (sender == this.
editingControl
)
5804
adjustedX += this.
editingControl
.Location.X;
5805
adjustedY += this.
editingControl
.Location.Y;
5984
Debug.Assert(sender == this.
editingControl
|| sender == this.editingPanel);
5995
Debug.Assert(sender == this.
editingControl
|| sender == this.editingPanel);
6006
Debug.Assert(sender == this.
editingControl
|| sender == this.editingPanel);
6012
Debug.Assert(sender == this.
editingControl
|| sender == this.editingPanel);
6018
Debug.Assert(sender == this.
editingControl
|| sender == this.editingPanel);
6024
Debug.Assert(sender == this.
editingControl
|| sender == this.editingPanel);
6027
Debug.Assert(this.
editingControl
!= null);
6031
this.CursorInternal = ((IDataGridViewEditingControl)this.
editingControl
).EditingPanelCursor;
6043
Debug.Assert(sender == this.
editingControl
|| sender == this.editingPanel);
6046
Debug.Assert(this.
editingControl
!= null);
6065
Debug.Assert(sender == this.
editingControl
|| sender == this.editingPanel);
6071
Debug.Assert(sender == this.
editingControl
|| sender == this.editingPanel);
6254
if (this.
editingControl
!= null)
6269
ImeMode editingControlImeMode = this.
editingControl
.CachedImeMode; // If in restricted mode, ImeMode will be Disable.
6270
this.latestEditingControl = this.
editingControl
;
9890
Debug.Assert(this.
editingControl
!= null);
9899
((IDataGridViewEditingControl)this.
editingControl
).EditingControlValueChanged = false;
10229
if (this.
editingControl
!= null &&
10612
if (this.
editingControl
!= null &&
10618
this.
editingControl
.Invalidate();
10619
this.
editingControl
.Update();
10677
if (this.
editingControl
!= null &&
10683
this.
editingControl
.Invalidate();
10684
this.
editingControl
.Update();
10702
if (dirty && this.
editingControl
!= null && ((IDataGridViewEditingControl) this.
editingControl
).RepositionEditingControlOnValueChange)
11309
if (this.
editingControl
!= null)
13378
if (repositionEditingControl && this.
editingControl
!= null)
13914
if (this.
editingControl
!= null)
14370
if (this.
editingControl
!= null)
14433
if (this.
editingControl
!= null)
14978
if (this.
editingControl
!= null)
15409
if (this.
editingControl
!= null)
15512
if (this.
editingControl
!= null && this.
editingControl
.ContainsFocus)
16264
if (this.
editingControl
!= null)
16817
this.
editingControl
!= null)
18656
if (this.
editingControl
!= null)
18710
if (this.
editingControl
!= null)
18923
if (this.
editingControl
!= null)
19234
if (-1 != this.ptCurrentCell.X && dataGridViewRow.Index == this.ptCurrentCell.Y && this.
editingControl
!= null)
19592
if (this.
editingControl
!= null)
19608
if (!this.BecomingActiveControl && (this.
editingControl
== null || !this.
editingControl
.BecomingActiveControl))
20279
if (repositionEditingControl && this.
editingControl
!= null)
20338
Debug.Assert(this.
editingControl
!= null);
20392
Debug.Assert(this.
editingControl
!= null);
20465
if (this.
editingControl
!= null)
20646
if (this.
editingControl
!= null)
22338
if (this.
editingControl
!= null)
22340
this.
editingControl
.SendMessage(m.Msg, m.WParam, m.LParam);
22355
if (this.
editingControl
!= null)
22357
this.
editingControl
.SendMessage(m.Msg, m.WParam, m.LParam);
22420
if (this.
editingControl
!= null && (m.Msg == NativeMethods.WM_KEYDOWN || m.Msg == NativeMethods.WM_SYSKEYDOWN))
22422
this.dataGridViewState2[DATAGRIDVIEWSTATE2_currentCellWantsInputKey] = ((IDataGridViewEditingControl)this.
editingControl
).EditingControlWantsInputKey(ke.KeyData, dataGridViewWantsInputKey);
25467
if (this.
editingControl
!= null)
25469
((IDataGridViewEditingControl) this.
editingControl
).EditingControlFormattedValue = nullValue;
25470
((IDataGridViewEditingControl) this.
editingControl
).EditingControlValueChanged = true;
25471
((IDataGridViewEditingControl) this.
editingControl
).PrepareEditingControlForEdit(true /*selectAll*/);
25642
if (this.
editingControl
!= null)
25646
if (((IDataGridViewEditingControl) this.
editingControl
).RepositionEditingControlOnValueChange)
25650
((IDataGridViewEditingControl) this.
editingControl
).PrepareEditingControlForEdit(true /*selectAll*/);
25651
((IDataGridViewEditingControl) this.
editingControl
).EditingControlValueChanged = false;
26455
if (this.
editingControl
!= null &&
26877
((IDataGridViewEditingControl)this.
editingControl
).EditingControlRowIndex = rowIndex;
26993
if (this.
editingControl
!= null)
26995
((IDataGridViewEditingControl)this.
editingControl
).EditingControlRowIndex = rowIndex;
27148
if (this.
editingControl
!= null)
27156
this.cachedEditingControl = this.
editingControl
;
28877
Debug.Assert(this.
editingControl
!= null);
28878
this.
editingControl
.Click -= new System.EventHandler(EditingControls_Click);
28879
this.
editingControl
.DoubleClick -= new System.EventHandler(EditingControls_DoubleClick);
28880
this.
editingControl
.MouseClick -= new System.Windows.Forms.MouseEventHandler(EditingControls_MouseClick);
28881
this.
editingControl
.MouseDoubleClick -= new System.Windows.Forms.MouseEventHandler(EditingControls_MouseDoubleClick);
28882
this.
editingControl
.MouseDown -= new System.Windows.Forms.MouseEventHandler(EditingControls_MouseDown);
28883
this.
editingControl
.MouseEnter -= new System.EventHandler(EditingControls_MouseEnter);
28884
this.
editingControl
.MouseLeave -= new System.EventHandler(EditingControls_MouseLeave);
28885
this.
editingControl
.MouseMove -= new System.Windows.Forms.MouseEventHandler(EditingControls_MouseMove);
28886
this.
editingControl
.MouseUp -= new System.Windows.Forms.MouseEventHandler(EditingControls_MouseUp);
29084
if (this.
editingControl
!= null)
29142
if (this.
editingControl
!= null)
29818
Debug.Assert(this.
editingControl
!= null);
29819
this.
editingControl
.Click += new System.EventHandler(EditingControls_Click);
29820
this.
editingControl
.DoubleClick += new System.EventHandler(EditingControls_DoubleClick);
29821
this.
editingControl
.MouseClick += new System.Windows.Forms.MouseEventHandler(EditingControls_MouseClick);
29822
this.
editingControl
.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(EditingControls_MouseDoubleClick);
29823
this.
editingControl
.MouseDown += new System.Windows.Forms.MouseEventHandler(EditingControls_MouseDown);
29824
this.
editingControl
.MouseEnter += new System.EventHandler(EditingControls_MouseEnter);
29825
this.
editingControl
.MouseLeave += new System.EventHandler(EditingControls_MouseLeave);
29826
this.
editingControl
.MouseMove += new System.Windows.Forms.MouseEventHandler(EditingControls_MouseMove);
29827
this.
editingControl
.MouseUp += new System.Windows.Forms.MouseEventHandler(EditingControls_MouseUp);
29987
if (this.
editingControl
!= null)
29990
this.
editingControl
.SendMessage(m.Msg, m.WParam, m.LParam);