private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { string textComboBoxItem = e.AddedItems[0].ToString(); var selectedRow = this.dataGrid.GetSelectedRow(); if (textComboBoxItem!= "Item2") { this.dataGrid.GetCell(selectedRow, 4).Content = ""; this.dataGrid.GetCell(selectedRow, 4).IsEnabled = false; }}