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