How can I get the selected range values from my datagrid in WPF application?
This is the screenshot of my application.
And this is my code so far:
private void excel_grid_SelectedCellsChanged(object sender, System.Windows.Controls.SelectedCellsChangedEventArgs e)
{
System.Windows.Controls.DataGrid dataGrid = sender as System.Windows.Controls.DataGrid;
IList<System.Windows.Controls.DataGridCellInfo> ne = dataGrid.SelectedCells;
}