53 references to DataGridViewEditMode
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
43
EditMode =
DataGridViewEditMode
.EditOnEnter;
System.Windows.Forms (50)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (6)
251
private const
DataGridViewEditMode
DefaultEditMode =
DataGridViewEditMode
.EditOnKeystrokeOrF2;
281
private
DataGridViewEditMode
_editMode;
2142
[DefaultValue(
DataGridViewEditMode
.EditOnKeystrokeOrF2)]
2144
public
DataGridViewEditMode
EditMode
2909
|| (EditMode !=
DataGridViewEditMode
.EditOnEnter && EditingControl is not null)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (40)
3064
if (endEdit && EditMode !=
DataGridViewEditMode
.EditOnEnter && EditingControl is not null)
4079
keepFocus: EditMode !=
DataGridViewEditMode
.EditOnEnter,
4119
&& (EditMode ==
DataGridViewEditMode
.EditOnEnter
4120
|| (EditMode !=
DataGridViewEditMode
.EditProgrammatically && CurrentCellInternal.EditType is null)))
6139
public bool EndEdit(DataGridViewDataErrorContexts context) => EditMode ==
DataGridViewEditMode
.EditOnEnter
6244
if (EditMode ==
DataGridViewEditMode
.EditOnEnter)
12823
&& (EditMode ==
DataGridViewEditMode
.EditOnEnter
12824
|| (EditMode !=
DataGridViewEditMode
.EditProgrammatically && CurrentCellInternal.EditType is null)))
13702
keepFocus: EditMode !=
DataGridViewEditMode
.EditOnEnter,
14437
&& (EditMode ==
DataGridViewEditMode
.EditOnEnter
14438
|| (EditMode !=
DataGridViewEditMode
.EditProgrammatically && CurrentCellInternal.EditType is null)))
14951
if (Focused && EditMode ==
DataGridViewEditMode
.EditOnEnter && _ptCurrentCell.X > -1 && !IsCurrentCellInEditMode)
15037
if (EditMode ==
DataGridViewEditMode
.EditOnEnter
15038
|| (EditMode !=
DataGridViewEditMode
.EditProgrammatically && CurrentCellInternal.EditType is null))
15185
&& (!_dataGridViewOper[OperationInEndEdit] || EditMode !=
DataGridViewEditMode
.EditOnEnter)
15186
&& (!_dataGridViewOper[OperationInMouseDown] || EditMode !=
DataGridViewEditMode
.EditOnEnter)
16360
&& EditMode ==
DataGridViewEditMode
.EditOnEnter
16849
&& (EditMode ==
DataGridViewEditMode
.EditOnEnter
16850
|| (EditMode !=
DataGridViewEditMode
.EditProgrammatically && CurrentCellInternal.EditType is null))
17951
keepFocus: EditMode !=
DataGridViewEditMode
.EditOnEnter,
18677
&& (EditMode ==
DataGridViewEditMode
.EditOnEnter
18678
|| (EditMode !=
DataGridViewEditMode
.EditProgrammatically && CurrentCellInternal.EditType is null)))
20066
&& (EditMode ==
DataGridViewEditMode
.EditOnEnter
20067
|| (EditMode !=
DataGridViewEditMode
.EditProgrammatically && CurrentCellInternal.EditType is null)))
21411
if (EditMode ==
DataGridViewEditMode
.EditOnEnter)
21499
Debug.Assert(EditMode !=
DataGridViewEditMode
.EditOnEnter
21505
&& (EditMode ==
DataGridViewEditMode
.EditOnKeystrokeOrF2 || EditMode ==
DataGridViewEditMode
.EditOnF2))
21509
BeginEditInternal(selectAll: EditMode ==
DataGridViewEditMode
.EditOnF2);
21880
&& (EditMode ==
DataGridViewEditMode
.EditOnKeystroke || EditMode ==
DataGridViewEditMode
.EditOnKeystrokeOrF2))
21898
if (BeginEditInternal(selectAll: !(ke.KeyCode == Keys.F2 && ModifierKeys == 0 && EditMode ==
DataGridViewEditMode
.EditOnKeystrokeOrF2)))
25266
&& (EditMode ==
DataGridViewEditMode
.EditOnKeystroke || EditMode ==
DataGridViewEditMode
.EditOnKeystrokeOrF2)
26809
keepFocus: EditMode !=
DataGridViewEditMode
.EditOnEnter,
26965
&& (EditMode ==
DataGridViewEditMode
.EditOnEnter
26966
|| (EditMode !=
DataGridViewEditMode
.EditProgrammatically && currentCell.EditType is null)))
26993
&& (EditMode ==
DataGridViewEditMode
.EditOnEnter
26994
|| (EditMode !=
DataGridViewEditMode
.EditProgrammatically && CurrentCellInternal.EditType is null)))
27021
keepFocus: EditMode !=
DataGridViewEditMode
.EditOnEnter,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
303
else if (dataGridView.EditMode !=
DataGridViewEditMode
.EditProgrammatically)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1630
if (throughMouseClick && DataGridView.EditMode !=
DataGridViewEditMode
.EditOnEnter)
1681
DataGridView.EditMode !=
DataGridViewEditMode
.EditProgrammatically &&
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
585
else if (DataGridView.EditMode !=
DataGridViewEditMode
.EditProgrammatically)
System.Windows.Forms.Tests (2)
System\Windows\Forms\DataGridViewTests.cs (2)
3247
_dataGridView.EditMode =
DataGridViewEditMode
.EditOnEnter;
3251
_dataGridView.EditMode =
DataGridViewEditMode
.EditOnKeystroke;