28 references to DataGridEditingUnit
PresentationFramework (28)
System\Windows\Controls\DataGrid.cs (28)
2308DataGridEditingUnit editingUnit = GetEditingUnit(e.Parameter);
2347DataGridEditingUnit editingUnit = GetEditingUnit(e.Parameter);
2423private DataGridEditingUnit GetEditingUnit(object parameter)
2427return ((parameter != null) && (parameter is DataGridEditingUnit)) ?
2428(DataGridEditingUnit)parameter :
2429IsEditingCurrentCell ? DataGridEditingUnit.Cell : DataGridEditingUnit.Row;
2520DataGridEditingUnit editingUnit = GetEditingUnit(e.Parameter);
2611if (CancelEdit(DataGridEditingUnit.Row) && isEditingRowItem)
2913dataGrid.EndEdit(CommitEditCommand, dataGrid._currentCellContainer, DataGridEditingUnit.Row, /* exitEditingMode = */ true);
2918dataGrid.EndEdit(CommitEditCommand, dataGrid._currentCellContainer, DataGridEditingUnit.Cell, /* exitEditingMode = */ true);
3222return CancelEdit(DataGridEditingUnit.Cell);
3226return CancelEdit(DataGridEditingUnit.Row);
3242return CancelEdit(DataGridEditingUnit.Cell);
3254public bool CancelEdit(DataGridEditingUnit editingUnit)
3264CancelEdit(DataGridEditingUnit.Row);
3269CancelEdit(DataGridEditingUnit.Cell);
3285return CommitEdit(DataGridEditingUnit.Cell, true);
3289return CommitEdit(DataGridEditingUnit.Row, true);
3302public bool CommitEdit(DataGridEditingUnit editingUnit, bool exitEditingMode)
3312return CommitEdit(DataGridEditingUnit.Row, /* exitEditingMode = */ true);
3317return CommitEdit(DataGridEditingUnit.Cell, /* exitEditingMode = */ true);
3323private bool EndEdit(RoutedCommand command, DataGridCell cellContainer, DataGridEditingUnit editingUnit, bool exitEditMode)
3341if (editingUnit == DataGridEditingUnit.Cell)
3373return cellLeftEditingMode && ((editingUnit == DataGridEditingUnit.Cell) || rowLeftEditingMode);
3755private bool IsAddingOrEditingRowItem(DataGridEditingUnit editingUnit, object item)
3757return (editingUnit == DataGridEditingUnit.Row) &&
4782EndEdit(CommitEditCommand, _currentCellContainer, DataGridEditingUnit.Cell, /* exitEditingMode = */ true);