在 WinForms 中是这样的:
if (dataGridViewControll.SelectedCells.Count > 0)
EditorForm.ID = dataGridViewControll.Rows[dataGridViewControll.SelectedCells[0].RowIndex].Cells[0].Value.ToString();
有谁知道如何在 WPF 中做这些技巧Grid?我的意思是SelectedCells和SelectedCells[0].RowIndex].Cells[0].Value。