方法一:  
DataRowView mySelectedElement = (DataRowView)dataGrid1.SelectedItem;   
string result = mySelectedElement.Row[0]ToString();   
  
方法二:  
var a = this.dataGrid1.SelectedItem;  
var b = a as DataRowView;  
string result = b.Row[0].ToString();  

 

相关文章:

  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
相关资源
相似解决方案