very good, I'm trying to select an element of a DataGridView, however, I can not get the selected item because the 'SelectedItem' function does not appear the following code
private void myData_SelectionChanged(object sender, EventArgs e)
{
DataGrid data = sender as DataGrid;
DataRowView view = myData.SelectedItem as DataRowView;
}
the screenshot