当前位置: 代码迷 >> .NET新技术 >> wpf中怎么获得dataGrid选中行的值
  详细解决方案

wpf中怎么获得dataGrid选中行的值

热度:71   发布时间:2016-04-25 01:49:31.0
wpf中如何获得dataGrid选中行的值
wpf中如何获得dataGrid选中行的值

------解决方案--------------------
foreach (var data in dataGridMain.SelectedItems)
{
MyObservableCollection myData = data as MyObservableCollection;
MessageBox.Show(myData.author);
}
  相关解决方案