hello is there any way to get the selected cell's content inside a datagrid. In a windows form appl, i used the following method but it was for datagridview. Can it be done with a datagrid in wpf? if not is there any/better alternative to datagrid in wpf? please help

 private void dataGridView3_CellContentClick(object sender, DataGridViewCellEventArgs e)
            string val2 = dataGridView3.Rows[e.RowIndex].Cells[0].Value.ToString();