// Token: 0x060046E9 RID: 18153 RVA: 0x00141A14 File Offset: 0x0013FC14
        private static void OnNotifyIsReadOnlyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DataGridCell dataGridCell  = (DataGridCell)d;
            DataGrid     dataGridOwner = dataGridCell.DataGridOwner;

            if ((bool)e.NewValue && dataGridOwner != null)
            {
                dataGridOwner.CancelEdit(dataGridCell);
            }
            CommandManager.InvalidateRequerySuggested();
            dataGridCell.NotifyPropertyChanged(d, string.Empty, e, DataGridNotificationTarget.Cells);
        }
        private void dataGrid_CellEditEnding(object sender, DataGridCellEditEndingEventArgs e)
        {
            if (e.EditAction == DataGridEditAction.Cancel && e.Row.GetIndex() == placeholderIndex)
            {
                invalidItems.Add((T)e.Row.Item);
            }
            else if (e.EditAction == DataGridEditAction.Commit && e.Cancel)
            {
                dataGrid.CancelEdit();
            }

            lastEdit = e;
        }