private void onBtn_ChangeSkill4(object sender, RoutedEventArgs e) { if (dgWarrior.SelectedItem != null) { SkillPickWindow skillPickWindow = new SkillPickWindow(); if (skillPickWindow.ShowDialog() == true) { (dgWarrior.SelectedItem as DataRowView)["SkillD"] = "[" + skillPickWindow.PickedSkillType + "]"; } } }