In my C # wpf application, I took a DataGrid, which is limited to data from the database. All values are displayed in this DataGrid. But I want to get the selected cell value.
Here is my code that is limited by datatable:
dataGrid1.ItemsSource = datatable1.DefaultView;
Please give me a solution to find the value of the cell. I found the selected index with the following code:
dataGrid1.SelectedIndex
source
share