UPDATED
To get the selected rows try:
IList rows = dg.SelectedItems;
You should then be able to get to the column value from a row item.
OR
DataRowView row = (DataRowView)dg.SelectedItems[0];
Then:
row["ColumnName"];
More Related Contents:
- How to get ToolTip from WPF Data Grid Column Header (DataGridTemplateColumn) in code?
- Accessing UI (Main) Thread safely in WPF
- DataGrid column width doesn’t auto-update
- Sort a wpf datagrid programmatically
- WPF DataGrid CustomSort for each Column
- How do I bind a WPF DataGrid to a variable number of columns?
- ICommand MVVM implementation
- How can I programmatically generate keypress events in C#?
- .NET Memory issues loading ~40 images, memory not reclaimed, potentially due to LOH fragmentation
- How do I exit a WPF application programmatically?
- How do I restart a WPF application? [duplicate]
- Datagrid binding in WPF
- The calling thread cannot access this object because a different thread owns it [duplicate]
- Updating an ObservableCollection in a separate thread
- Software rendering mode – WPF
- Horizontal scroll for stackpanel doesn’t work
- WPF How to access control from DataTemplate
- Using FolderBrowserDialog in WPF application [duplicate]
- Disallow/Block selection of disabled combobox item in wpf
- Content of a Button Style appears only in one Button instance
- How to build A WPF Datagrid with an unknown number of columns
- Put WPF control into a Windows Forms Form?
- Date formatting in WPF datagrid
- Merge Cells in WPF DataGrid
- WPF TwoWay Binding to a static class Property
- OpenClipboard failed when copy pasting data from WPF DataGrid
- How do I keep aspect ratio on scalable, scrollable content in WPF?
- Why does WPF databinding swallow exceptions?
- Storyboards can’t find ControlTemplate elements
- How to set background of a datagrid cell during AutoGeneratingColumn event depending on its value?